CL Command Reference - CHGNFYJS

CL Command List > CHGNFYJS Reference

Description:

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 recipient normal (PGRRCPNORM), Notification recipient abnormal (PGRRCPABN) and Notification start job (PGRRCPSTR) and parameters become the substitution values that are used in the CHGNFYJS command.


Examples:

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.