ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/chgnfyjs.htm

101 lines
4.6 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Change Notification Command (CHGNFYJS)</title>
</head>
<body bgcolor="white">
<a name="CHGNFYJS.Top_Of_Page"></a>
<h2>Change Notification Command (CHGNFYJS)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#CHGNFYJS.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGNFYJS.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGNFYJS.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGNFYJS"></a>
<p>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 <b>Notification normal (PGRRCPNORM)</b>, <b>Notification abnormal (PGRRCPABN)</b> and <b>Notification start job (PGRRCPSTR)</b> and parameters become the substitution values that are used in the CHGNFYJS command.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNFYJS.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGNFYJS.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#CHGNFYJS.CMD"><b>CMD</b></a></td>
<td valign="top">Notification command</td>
<td valign="top"><i>Character value</i>, <b><u>*SAME</u></b>, *SNDDSTJS, *NONE</td>
<td valign="top">Optional, Positional 1</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGNFYJS.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGNFYJS.CMD"></a>
<h3>Notification command (CMD)</h3>
<p>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.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The current value for the parameter does not change.
</dd>
<dt><b>*SNDDSTJS</b></dt>
<dd>You are to use the Send Distribution using JS (SNDDSTJS) to send notification messages using e-mail to the specified recipients. The substitution variables are used but are not specified.
<p>
<b>Note: </b>SMTP information must be specified before the Send Distribution using JS (SNDDSTJS) command can be used.
</p>
</dd>
<dt><b>*NONE</b></dt>
<dd>You are not using a notification software package with Advanced Job Scheduler.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify the command to use when you want Advanced Job Scheduler to send a message for normal and abnormal job completion as well as if a job does not start within a specified amount of time. The two substitution variables are &amp;RCP (recipient) and &amp;MSGTXT (message).
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNFYJS.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGNFYJS.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
CHGNFYJS CMD('SNDMNAMSG TOUSER(&amp;RCP)
MSG(''&amp;MSGTXT'')')
</pre>
</p>
<p>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 &amp;RCP (recipient) and &amp;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 &amp;MSGTXT variable.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNFYJS.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGNFYJS.ERROR.MESSAGES">Error messages</a></h3>Unknown
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGNFYJS.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>