Exchange/RJE Manual
FILEINFO Procedure
Exchange/RJE System Procedure Calls
104698 Tandem Computers Incorporated 5–17
FILEINFO Procedure The FILEINFO procedure returns the number of the last error reported by the
Exchange/RJE line server.
CALL FILEINFO (
filenum
,
error
);
filenum
INT:value
is the file number of the Exchange/RJE line server. This number is returned by the
call to OPEN that established communication with the line server.
If your program is calling FILEINFO to retrieve the number of an error that
occurred while trying to open the line server,
filenum
must be equal to -1.
error
INT:ref:1
returns the number of the error that occurred during the last operation on the line
server.
Line Activity None.
Considerations The FILEINFO procedure returns the number of the last error reported by the
Exchange/RJE line server. Your program can then determine what to do next based
on the particular error that occurred.
The actual occurrence of an error is determined by testing the condition code
immediately after each procedure call. Any condition code other than equal (CCE or
=) indicates that an error or warning occurred. Your program should always check the
condition code after every procedure call that operates on the line server, and your
program should always call FILEINFO if the condition code is not equal to zero.
For a list of the error numbers returned by the line server and their meanings, see
“Error Handling” in Section 4.