Handling errors

File Manager sets the following return codes:

0
All File Manager functions processed successfully.
16
File Manager terminated because of an error. File Manager or system messages identify the error. For more information about File Manager messages, see Messages.
>100
Not enough storage to load File Manager.

If an error is detected, File Manager issues an error message and terminates. If an error causes the system to cancel a File Manager function (for example, a file open error), File Manager tries to recover from the cancel condition and close any files left open before it terminates.

Some File Manager functions have their own return codes. If you receive a return code that is not listed above, refer to the description of the function in Functions.

Notes:
  1. In addition to the return codes provided by File Manager, you can create your own return codes during the installation and customization of the product. These customized codes take precedence over any default File Manager return codes. The functions that can have customized return codes are:
    • CLM (Load Module Compare)
    • DSC (Data Set Copy)
    • DSEB (Data Set Edit Batch)
    • DSG (Data Set Generate)
    • DSM (Data Set Compare)
    • DSP (Data Set Print)
    • DSU (Data Set Update)
    • DVT (Display VTOC)
    • FCH (Find/Change)

    If you receive return codes that do not match the ones described here or in the Function Reference chapter, they might have been customized for your site. Contact your File Manager systems administrator for information.

  2. In batch, you may want to transform an original or customized non-zero return code to an abend (Abend 999, Reason Code=888 (hex: 378)). It could also be forced by installation at your site. Abnormal termination of a File Manager step prevents execution of successors (steps or jobs). Check the ABENDCC option of the SET command, or contact your File Manager system administrator for details.