× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Michael,

If you look at the RPG Reference manual, "Chapter 5. File and Program
Exception/Errors", there is "Table 22. Exception/Error Codes".

Per the RPG Reference manual under "Chapter 22. Built-in Functions":

%STATUS (Return File or Program Status)
%STATUS{(file_name)}

%STATUS returns the most recent value set for the program or file status.
%STATUS is set whenever the program status or any file status changes,
usually when an error occurs.

If %STATUS is used without the optional file_name parameter, then it
returns the program or file status most recently changed. If a file is
specified, the value contained in the INFDS *STATUS field for the
specified file is returned. The INFDS does not have to be specified for
the file.

%STATUS starts with a return value of 00000 and is reset to 00000 before
any operation with an ?E? extender specified begins.

%STATUS is best checked immediately after an operation with the ?E?
extender or an error indicator specified, or at the beginning of an INFSR
or the *PSSR subroutine.

For more information, see ?File Operations? on page 416, ?Result
Operations? on page 429, or ?Built-in Functions? on page 394.


Hope this helps.

Glenn Gundermann
ggundermann@xxxxxx
(647) 272-3295


Does anyone have a list of the %STATUS codes in a file?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.