·%STATUS provides a five-digit status code that identifies the error. ·Program status codes are in the range 00100 to 00999 and File status codes are in the range 01000 to 01999. ·Status codes in the range 00000 to 00050 are considered to be normal (i.e., they are not set by an...
CHECKRINREADPESUBST ·The error will be handled using the built-in functions %STATUS and %ERROR. ·Control resumes with the next ILE RPG operation. Example – I –%error built-in function in rpgle ERROR HANDLING USING E-OPERATOR EXTENDER BUT NOT HANDLING ERROR WITH %ERROR Columns . . . :...
While searching, when the comparaters(a,b,c,d) finds a position where there is no match then that position is returned as a search result. Hence, %CHECK function is used to find the position for non-occurrence of a character in source string from right. Example –%CHECKR built-in funct...
%OPEN function is used to check to see if a file has already been opened. It returns *ON if the file is opened, otherwise it returns *OFF. In case we are using USROPN keyword in F-Spec, then during the program initialization the file will be closed and we need to open it explicitl...