CHGPGRJS (Change Pager Command using Job Scheduler) Command

Note: To use this command, have the 5722-JS1 (Job Scheduler for iSeries) licensed program installed.

CHGPGRJS Command syntax diagram

 

Purpose

The Change Pager Command using Job Scheduler (CHGPGRJS) command allows you to specify the command to use from your paging software to send a pager message. The command you specify here is used by the ADDJOBJS, CHGJOBJS and SBMJOBJS commands to send pages for normal and abnormal job completion respectively. The values you specify in the PGRRCPNORM and PGRRCPABN parameters become the substitution values that are used in the CHGPGRJS command. The two substitution variables are &RCP (recipient) and &MSGTXT (message).

 

Optional Parameters

CMD
Specifies the command used in the specified paging software to send a message. The command you specify here is used to send pages for normal and abnormal completions of job schedule entries.

*SAME: The current value for the parameter does not change.

*NONE: You are not using a paging software package with Job Scheduler.

pager-command: Specify the command to use when you want to Job Scheduler to send a pager message for normal and abnormal job schedule entry completion.

Example for CHGPGRJS

Example 1: Specifying a PagerPac Command

CHGPGRJS CMD('SNDMNAMSG TOUSER(&RCP) +
MSG(''&MSGTXT'')')

In this example the Send MNA Message (SNDMNAMSG) command is used to send pager 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 CHGPGRJS command. You should enter paired quotes around the &MSGTXT variable.

Error messages for CHGPGRJS

None