FTCHKJES is called if the server is in FILETYPE=JES mode and the
client tries to submit a job. The following information is passed
to the exit:
- The user ID
- A buffer containing the current JCL statement
- Size of statement in the buffer
- JESLrecl value
- Number of this buffer in current series
- Bytes transferred so far (including this buffer)
- Client identifier (see also session instance identifier)
- JESRecfm value
- FTCHKJES exit-specific workarea (4 bytes)
- The socket address structure of the client's control connection
- The socket address structure of the server's control connection
- Session instance identifier
- A 256-byte scratchpad buffer
The exit can allow or refuse the job to be submitted to the JES
internal reader based on any information passed to the exit. For example,
the exit can look for a USER= parameter on the JOB statement and check
it against the client's user ID. If the remote job submission is denied,
the exit sends the user the following reply:
550 User Exit refuses this job to be submitted by userid