User Exit for File Action Notifications

The MFJFAXIT user exit can be used to receive notification of file open events. The JCL engine calls the user exit when a JCL file is opened OUTPUT, I-O or EXTEND, or when a file is copied or renamed by the JCL engine.

The JCL engine passes the data set name and member name, if available - there are points in the JCL processing where the data set and member names are not available at the point the user exit is called. The file action intent or mode is passed together with the physical file path and name.

File open action intents or modes that are notified to the exit are:

  • OUTPUT
  • I-O
  • EXTEND
  • COPIED
  • RENAMED
Note: OPEN INPUT and DELETE actions are not passed to the exit.

To enable the exit, set the environment variable MFJFAXIT to point to your program that implements the exit - a sample user exit program (MFJFAXIT.cbl) is provided with your product, and is located in the src\enterpriseserver\exits sub-directory of your product install directory.