Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Notification Command using Job Scheduler (CHGNFYJS) command allows you to specify the command to use from your notification software to send a message to a recipient you specify. The command you specify here is used by the ADDJOBJS, CHGJOBJS, and SBMJOBJS commands to send notifications for normal and abnormal job completion respectively as well as if a job does not start within a specified amount of time. The notification recipient and notification message values you specified for the Notification normal (PGRRCPNORM), Notification abnormal (PGRRCPABN) and Notification start job (PGRRCPSTR) and parameters become the substitution values that are used in the CHGNFYJS command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
CMD | Notification command | Character value, *SAME, *SNDDSTJS, *NONE | Optional, Positional 1 |
Top |
Specifies the command used in the specified notification software to send a message. The command you specify here is used to send messages for normal and abnormal completions of jobs as well as if a job does not start within a specified amount of time.
Note: SMTP information must be specified before the Send Distribution using JS (SNDDSTJS) command can be used.
Top |
CHGNFYJS CMD('SNDMNAMSG TOUSER(&RCP) MSG(''&MSGTXT'')')
This command changes notification attributes for Advanced Job Scheduler. In this example, the Send MNA Message (SNDMNAMSG) command is used to send messages to recipients as a result of normal or abnormal job completions. The values for variables &RCP (recipient) and &MSGTXT (message) are specified in the PGRRCPNORM and PGRRCPABN parameters and are the replacement values used in the CHGNFYJS command. You should enter paired quotes around the &MSGTXT variable.
Top |
Top |