How can a job send a status message to a TSO user at the completion of a job ?
-
STATUS
-
NOTIFY
-
ENDMSG
-
USER
The NOTIFY parameter in the JOB statement sends a message to a specified TSO user when the job completes. STATUS is not a valid JCL parameter. ENDMSG and USER are not standard parameters for job completion notifications.
NOTIFY is the correct JCL keyword. Coding NOTIFY=userid on the JOB statement causes TSO/E to send a message to that user's terminal (or leave it for later retrieval) reporting the job's completion status and condition codes. STATUS, ENDMSG, and USER are not JCL keywords — STATUS and ENDMSG don't exist as JOB statement parameters, and USER is used for RACF user association, not completion notification. NOTIFY is the standard, well-documented mechanism for this purpose.