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

745 lines
28 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 Job Schedule Entry (CHGJOBSCDE)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="CHGJOBSCDE.Top_Of_Page"></a>
<h2>Change Job Schedule Entry (CHGJOBSCDE)</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="#CHGJOBSCDE.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGJOBSCDE.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGJOBSCDE.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGJOBSCDE"></a>
<p>The Change Job Schedule Entry (CHGJOBSCDE) command allows you to change an entry in the job schedule.
</p>
<p>The job schedule entry contains all of the information needed to automatically submit a batch job. You can use this command to change:
</p>
<ul>
<li>The command the job runs
</li>
<li>The date and time at which a job is scheduled to run
</li>
<li>The recovery action the system takes if the job cannot be submitted at the scheduled time
</li>
<li>The job description and user profile under which the job is run
</li>
<li>The job queue on which the job is placed when it is submitted
</li>
<li>The message queue to which messages are sent
</li>
</ul>
<p>Each job schedule entry is identified by the job name, which is specified for the JOB parameter of this command, and an entry number, which is assigned by the system when the entry is added. The message sent when an entry is added contains the entry number. If there is more than one entry with the same job name, you may need to specify the number when changing the entry using this command, removing the entry using the Remove Job Schedule Entry (RMVJOBSCDE) command, or when holding or releasing the entry using the Hold Job Schedule Entry (HLDJOBSCDE) or Release Job Schedule Entry (RLSJOBSCDE) command. You can use the Work with Job Schedule Entries (WRKJOBSCDE) command to show or print entries.
</p>
<p>More information is in the Work Management information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
<p><b>Restrictions:</b>
</p>
<ol>
<li>The issuer of this command must be running under a user profile which is the same as the job user identity of the job schedule entry being changed, or the issuer of the command must be running under a user profile which has job control (*JOBCTL) special authority.
<p>The job user identity is the name of the user profile by which a job is known to other jobs. More information about the job user identity is in the Work Management information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
</p>
</li>
<li>To use this command, you must have:
<ul>
<li>use (*USE) authority to the command specified by the <b>Command to run (CMD)</b> parameter and execute (*EXECUTE) authority to the library containing that command.
</li>
<li>use (*USE) authority to the job description (JOBD) and execute (*EXECUTE) authority to the library containing that job description.
</li>
<li>use (*USE) authority to the job queue (JOBQ) and execute (*EXECUTE) authority to the library containing that job queue.
</li>
<li>use (*USE) authority to the user profile (USER) that the job is to run under.
</li>
<li>use (*USE) and add (*ADD) authority to the message queue (MSGQ), and execute (*EXECUTE) authority to the library containing that message queue.
</li>
<li>change (*CHANGE) authority to object QDFTJOBSCD, type *JOBSCD, in library QUSRSYS and execute (*EXECUTE) authority to library QUSRSYS.
</li>
</ul>
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGJOBSCDE.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="#CHGJOBSCDE.JOB"><b>JOB</b></a></td>
<td valign="top">Job name</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Key, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.ENTRYNBR"><b>ENTRYNBR</b></a></td>
<td valign="top">Entry number</td>
<td valign="top">000001-999999, <b><u>*ONLY</u></b></td>
<td valign="top">Optional, Key</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.CMD"><b>CMD</b></a></td>
<td valign="top">Command to run</td>
<td valign="top"><i>Command string</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.FRQ"><b>FRQ</b></a></td>
<td valign="top">Frequency</td>
<td valign="top"><b><u>*SAME</u></b>, *ONCE, *WEEKLY, *MONTHLY</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.SCDDATE"><b>SCDDATE</b></a></td>
<td valign="top">Schedule date</td>
<td valign="top"><i>Date</i>, <b><u>*SAME</u></b>, *CURRENT, *MONTHSTR, *MONTHEND, *NONE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.SCDDAY"><b>SCDDAY</b></a></td>
<td valign="top">Schedule day</td>
<td valign="top">Single values: <b><u>*SAME</u></b>, *NONE, *ALL<br>Other values (up to 7 repetitions): *MON, *TUE, *WED, *THU, *FRI, *SAT, *SUN</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.SCDTIME"><b>SCDTIME</b></a></td>
<td valign="top">Schedule time</td>
<td valign="top"><i>Time</i>, <b><u>*SAME</u></b>, *CURRENT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.RELDAYMON"><b>RELDAYMON</b></a></td>
<td valign="top">Relative day of month</td>
<td valign="top">Single values: <b><u>*SAME</u></b><br>Other values (up to 5 repetitions): *LAST, 1, 2, 3, 4, 5</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.SAVE"><b>SAVE</b></a></td>
<td valign="top">Save</td>
<td valign="top"><b><u>*SAME</u></b>, *NO, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.OMITDATE"><b>OMITDATE</b></a></td>
<td valign="top">Omit date</td>
<td valign="top">Single values: <b><u>*SAME</u></b>, *NONE<br>Other values (up to 20 repetitions): <i>Date</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGJOBSCDE.RCYACN"><b>RCYACN</b></a></td>
<td valign="top">Recovery action</td>
<td valign="top"><b><u>*SAME</u></b>, *SBMRLS, *SBMHLD, *NOSBM</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CHGJOBSCDE.JOBD"><b>JOBD</b></a></td>
<td valign="top">Job description</td>
<td valign="top">Single values: <b><u>*SAME</u></b>, *USRPRF<br>Other values: <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Job description</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top" rowspan="3"><a href="#CHGJOBSCDE.JOBQ"><b>JOBQ</b></a></td>
<td valign="top">Job queue</td>
<td valign="top">Single values: <b><u>*SAME</u></b>, *JOBD<br>Other values: <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Job queue</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#CHGJOBSCDE.USER"><b>USER</b></a></td>
<td valign="top">User</td>
<td valign="top"><i>Name</i>, <b><u>*SAME</u></b>, *JOBD, *CURRENT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CHGJOBSCDE.MSGQ"><b>MSGQ</b></a></td>
<td valign="top">Message queue</td>
<td valign="top">Single values: <b><u>*SAME</u></b>, *USRPRF, *NONE<br>Other values: <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Message queue</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#CHGJOBSCDE.TEXT"><b>TEXT</b></a></td>
<td valign="top">Text 'description'</td>
<td valign="top"><i>Character value</i>, <b><u>*SAME</u></b>, *BLANK</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGJOBSCDE.JOB"></a>
<h3>Job name (JOB)</h3>
<p>Specifies the name of the job schedule entry.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the job schedule entry that you want to change.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.ENTRYNBR"></a>
<h3>Entry number (ENTRYNBR)</h3>
<p>Specifies the number of the job schedule entry you want to change. The message sent when an entry is successfully added contains the entry number. You can also determine the entry number by using the Work with Job Schedule Entries (WRKJOBSCDE) command. Press F11 from the Work with Job Schedule Entries display to show the entry numbers of the selected entries.
</p>
<dl>
<dt><b><u>*ONLY</u></b></dt>
<dd>Only one entry in the job schedule has the job name specified for the JOB parameter. If *ONLY is specified and more than one entry has the specified job name, no entries are changed and an error message is sent.
</dd>
<dt><b><i>000001-999999</i></b></dt>
<dd>Specify the number of the job schedule entry you want to change.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.CMD"></a>
<h3>Command to run (CMD)</h3>
<p>Specifies the command that runs in the submitted job. The IBM-supplied default routing program QCMD must be used when the job is started or the job will not run. Because the command you specify is used for the request data, the value specified for the RQSDTA parameter in the job description is ignored. The command you specify is syntax-checked when the entry is added.
</p>
<dl>
<dt><b><i>command-string</i></b></dt>
<dd>Specify a maximum of 512 characters.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.FRQ"></a>
<h3>Frequency (FRQ)</h3>
<p>Specifies how often the job is submitted to run.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*ONCE</b></dt>
<dd>The job is submitted once.
</dd>
<dt><b>*WEEKLY</b></dt>
<dd>The job is submitted on the same day or days of each week at the scheduled time.
</dd>
<dt><b>*MONTHLY</b></dt>
<dd>The job is submitted on the same day or days of each month at the scheduled time.
<p>If you specify *MONTHLY and a month does not contain the day specified for the SCDDATE parameter, the job is not run that month. For example, if SCDDATE(01/31/93) and FRQ(*MONTHLY) are specified, the job will run on 01/31, 03/31, 5/31, 7/31, 8/31, 10/31 and 12/31, but will not run in February, April, June, September, or November. To submit a job on the last day of every month, specify SCDDATE(*MONTHEND).
</p>
<p>If you specify *MONTHLY and your system or your job is configured to use Julian date format, the job is submitted to run on the day of the month that it would run if the system or job did not use Julian date format.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.SCDDATE"></a>
<h3>Schedule date (SCDDATE)</h3>
<p>Specifies the date on which the job is submitted to run.
</p>
<p>If your system or your job is configured to use the Julian date format, *MONTHSTR and *MONTHEND are calculated as if the system or job did not use the Julian date format.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*CURRENT</b></dt>
<dd>The job is submitted on the current date.
</dd>
<dt><b>*MONTHSTR</b></dt>
<dd>The job is submitted on the first day of the month. If you specify *MONTHSTR, and if today is the first day of the month and the time you specify on the SCDTIME parameter has not passed, the job is submitted today. Otherwise, the job is submitted on the first day of the next month.
</dd>
<dt><b>*MONTHEND</b></dt>
<dd>The job is submitted on the last day of the month. If you specify *MONTHEND, and if today is the last day of the month and the time you specify on the SCDTIME has not passed, the job is submitted today. Otherwise it is submitted on the last day of the next month.
</dd>
<dt><b>*NONE</b></dt>
<dd>No date is specified for a job to be submitted. When SCDDATE(*NONE) is specified, a value other than *NONE must be specified for SCDDAY.
</dd>
<dt><b><i>date</i></b></dt>
<dd>Specify the date in the job date format.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.SCDDAY"></a>
<h3>Schedule day (SCDDAY)</h3>
<p>Specifies the day of the week on which the job is submitted.
</p>
<p>The SCDDATE and SCDDAY parameters are mutually exclusive.
</p>
<p>If today is the day of the week specified for this parameter and the time specified for the SCDTIME parameter has not passed, the job is submitted today. Otherwise, the job is submitted on the next occurrence of the specified day. For example, if SCDDAY(*FRI) and SCDTIME(12:00:00) are specified, and you are adding this job schedule entry at 11:00 a.m. on a Friday, the job is submitted today. If you are adding the entry at 4:00 p.m. on a Friday, or at 11:00 a.m. on a Monday, the job is submitted the following Friday.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*NONE</b></dt>
<dd>No day is specified for a job to be submitted. SCDDAY(*NONE) is not valid when SCDDATE(*NONE) is specified.
</dd>
<dt><b>*ALL</b></dt>
<dd>The job is submitted every day.
</dd>
</dl>
<p><b>Other values (up to 7 repetitions)</b>
</p>
<dl>
<dt><b>*MON</b></dt>
<dd>The job is submitted on Monday.
</dd>
<dt><b>*TUE</b></dt>
<dd>The job is submitted on Tuesday.
</dd>
<dt><b>*WED</b></dt>
<dd>The job is submitted on Wednesday.
</dd>
<dt><b>*THU</b></dt>
<dd>The job is submitted on Thursday.
</dd>
<dt><b>*FRI</b></dt>
<dd>The job is submitted on Friday.
</dd>
<dt><b>*SAT</b></dt>
<dd>The job is submitted on Saturday.
</dd>
<dt><b>*SUN</b></dt>
<dd>The job is submitted on Sunday.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.SCDTIME"></a>
<h3>Schedule time (SCDTIME)</h3>
<p>Specifies the time on the scheduled date at which the job is submitted to run.
</p>
<p>
<b>Note: </b>Although the time can be specified to the second, the activity involved in submitting a job and the load on the system may affect the exact time at which the job is submitted.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*CURRENT</b></dt>
<dd>The job is submitted at the current time. If you specify SCDTIME(*CURRENT) and SCDDATE(*CURRENT), the job is immediately submitted to the job queue specified.
</dd>
<dt><b><i>time</i></b></dt>
<dd>Specify the time you want the job to be submitted. The time is specified in 24-hour format and can be specified with or without a time separator:
<ul>
<li>Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where <b>hh</b> = hours, <b>mm</b> = minutes, and <b>ss</b> = seconds. Valid values for <b>hh</b> range from 00 to 23. Valid values for <b>mm</b> and <b>ss</b> range from 00 to 59.
</li>
<li>With a time separator, specify a string of 5 or 8 digits where the time separator specified for your job is used to separate the hours, minutes, and seconds. If this command is entered from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command will fail.
</li>
</ul>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.RELDAYMON"></a>
<h3>Relative day of month (RELDAYMON)</h3>
<p>Specifies the relative day of the month on which the job is submitted to run.
</p>
<p>This parameter is valid only if a value is specified for the SCDDAY parameter and FRQ(*MONTHLY) is specified.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<p><b>Other values (up to 5 repetitions)</b>
</p>
<dl>
<dt><b>1</b></dt>
<dd>The job is submitted on the specified day of the week the first time it occurs in the month. For example, if you specify SCDDAY(*TUE), FRQ(*MONTHLY) and RELDAYMON(1), the job is submitted on the first Tuesday of every month.
</dd>
<dt><b>2</b></dt>
<dd>The job is submitted on the specified day of the week the second time it occurs in the month.
</dd>
<dt><b>3</b></dt>
<dd>The job is submitted on the specified day of the week the third time it occurs in the month.
</dd>
<dt><b>4</b></dt>
<dd>The job is submitted on the specified day of the week the fourth time it occurs in the month.
</dd>
<dt><b>5</b></dt>
<dd>The job is submitted on the specified day of the week the fifth time it occurs in the month.
</dd>
<dt><b>*LAST</b></dt>
<dd>The job is submitted on the specified day of the week the last time it occurs in the month.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.SAVE"></a>
<h3>Save (SAVE)</h3>
<p>Specifies whether the entry for a job that is submitted only once is kept after the job is submitted. This parameter is valid only if FRQ(*ONCE) is specified.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*NO</b></dt>
<dd>The entry is not kept after the job is submitted.
</dd>
<dt><b>*YES</b></dt>
<dd>The entry is kept after the job is submitted. If you specify *YES, the job is submitted once. The job is not submitted again until the Change Job Schedule Entry (CHGJOBSCDE) command is used to specify a new date and time.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.OMITDATE"></a>
<h3>Omit date (OMITDATE)</h3>
<p>Specifies a maximum of 20 dates on which the job is not submitted. You can, for example, use this parameter to prevent recurring jobs from running on holidays. The date must be specified in the job date format.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*NONE</b></dt>
<dd>There are no dates when a job is not submitted.
</dd>
</dl>
<p><b>Other values (up to 20 repetitions)</b>
</p>
<dl>
<dt><b><i>date</i></b></dt>
<dd>Specify a date when a job is not submitted.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.RCYACN"></a>
<h3>Recovery action (RCYACN)</h3>
<p>Specifies the recovery action to be taken if the job cannot be submitted at the designated time because the system is powered down or in restricted state. The action specified for this parameter occurs at the next IPL or when the system comes out of restricted state.
</p>
<p>Jobs submitted during IPL or when the system comes out of restricted state are submitted in the same order that they would have been had the jobs been submitted at the times specified in the job schedule entries. If multiple occurrences of a recurring job are missed, the job is submitted only once. The first missed occurrence of a recurring job is used to order the jobs. The next occurrence of the job is calculated from the current date.
</p>
<p>Since the scheduler portion of IPL need not be complete for the IPL of the system to be complete, other jobs may start on the system before all of the jobs have been submitted.
</p>
<p>This parameter does not apply:
</p>
<ul>
<li>When a job is released after being held at the date and time it was to be submitted
</li>
<li>When the date and time at which a job is to be submitted passes because of changes to date and time system values
</li>
</ul>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*SBMRLS</b></dt>
<dd>The job is submitted in the released state (RLS).
</dd>
<dt><b>*SBMHLD</b></dt>
<dd>The job is submitted in the held state (HLD).
</dd>
<dt><b>*NOSBM</b></dt>
<dd>The job is not submitted.
<p>Specifying *NOSBM affects only missed occurrences of the job. If the job schedule entry is a recurring job, future occurrences are not affected.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.JOBD"></a>
<h3>Job description (JOBD)</h3>
<p>Specifies the qualified name of the job description used when submitting the job.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*USRPRF</b></dt>
<dd>The job description specified in the user profile under which the submitted job runs is used. The USER parameter specifies the user profile.
</dd>
</dl>
<p><b>Qualifier 1: Job description</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the job description.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the thread's library list are searched until a match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the object. If no library is specified as the current library for the thread, the QGPL library is used.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library where the job description is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.JOBQ"></a>
<h3>Job queue (JOBQ)</h3>
<p>Specifies the qualified name of the job queue on which this job is placed.
</p>
<p>You must have authority to the queue to specify a name on this parameter. Authority to the queue cannot be received through program adoption.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*JOBD</b></dt>
<dd>The submitted job is placed on the job queue specified in the job description. The JOBD parameter specifies the job description.
</dd>
</dl>
<p><b>Qualifier 1: Job queue</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the job queue.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the thread's library list are searched until a match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the object. If no library is specified as the current library for the thread, the QGPL library is used.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library where the job queue is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.USER"></a>
<h3>User (USER)</h3>
<p>Specifies the name of the user profile under which the job is submitted.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*CURRENT</b></dt>
<dd>The job is submitted under the user profile of the user that is changing the entry.
</dd>
<dt><b>*JOBD</b></dt>
<dd>The user profile specified for the USER parameter of the job description is used. The JOBD parameter of this command specifies the job description. This value is not valid if USER(*RQD) is specified in the job description.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the user profile that is used. You must be authorized to the user profile. The user profile must be authorized to the job queue, job description, and message queue specified on this command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.MSGQ"></a>
<h3>Message queue (MSGQ)</h3>
<p>Specifies the name of the message queue to which messages are sent.
</p>
<p>Messages are sent when the job is submitted and when a submitted job has completed running. Messages indicating a serious error are sent to the QSYSOPR message queue regardless of the value specified for this parameter when:
</p>
<ul>
<li>The message queue specified for this parameter is damaged.
</li>
<li>MSGQ(*NONE) is specified.
</li>
<li>MSGQ(*USRPRF) and USER(*JOBD) are specified, and the job description specified for the JOBD parameter is changed to USER(*RQD) after the entry is added.
</li>
</ul>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*USRPRF</b></dt>
<dd>The message queue specified in the user profile under which the submitted job runs is used. The USER parameter specifies the user profile.
</dd>
<dt><b>*NONE</b></dt>
<dd>Completion messages are not sent. Error messages are sent to the QSYSOPR message queue.
</dd>
</dl>
<p><b>Qualifier 1: Message queue</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the message queue.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the thread's library list are searched until a match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the object. If no library is specified as the current library for the thread, the QGPL library is used.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library where the message queue is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGJOBSCDE.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>Specifies the text that briefly describes the object.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*BLANK</b></dt>
<dd>No text is specified.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify no more than 50 characters of text, enclosed in apostrophes.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGJOBSCDE.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Changing a Job Schedule Entry</b>
</p>
<p>
<pre>
CHGJOBSCDE JOB(BACKUP) ENTRYNBR(001584) JOBQ(QGPL/QBATCH)
</pre>
</p>
<p>This command changes job schedule entry BACKUP number 001584 so that its jobs are submitted to job queue QBATCH in library QGPL.
</p>
<p><b>Example 2: Changing a Job Schedule Entry</b>
</p>
<p>
<pre>
CHGJOBSCDE JOB(EXAMPLE) ENTRYNBR(*ONLY) CMD(CALL PGM(A))
FRQ(*WEEKLY) SCDDATE(121503) SCDTIME(110000)
</pre>
</p>
<p>This command schedules a batch job to run program A at 11 a.m. on 12/15/03 and every week on that same day.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGJOBSCDE.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF1620</b></dt>
<dd>Job schedule entry &amp;3 number &amp;4 not changed.
</dd>
<dt><b>CPF9872</b></dt>
<dd>Program or service program &amp;1 in library &amp;2 ended. Reason code &amp;3.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGJOBSCDE.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>