Use of the filerc variable
A variable called 'filerc' is used in several examples. This method is used to get hold of the REXX return code which can be used for testing. You can call the variable any valid REXX name. You can use different names for different statements or you do not need to use a variable at all if you are not going to use the return code.
This variable does not hold the DL/I status code. FMSTATUS is designed for this purpose.