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

395 lines
14 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Work with History using JS (WRKHSTJS)</title>
</head>
<body bgcolor="white">
<a name="WRKHSTJS.Top_Of_Page"></a>
<h2>Work with History using JS (WRKHSTJS)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>Interactive environments (*INTERACT *IPGM *IREXX *EXEC)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#WRKHSTJS.PARAMETERS.TABLE">Parameters</a><br>
<a href="#WRKHSTJS.COMMAND.EXAMPLES">Examples</a><br>
<a href="#WRKHSTJS.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="WRKHSTJS"></a>
<p>The Work with History using Job Scheduler (WRKHSTJS) command allows you to work with job completion history based on specified completion status, date ranges and sequences. The Work with History using Job Scheduler command takes you to the Work with History display which shows the job information, last run information and completion status for jobs based on the parameters you have selected in the WRKHSTJS command.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="WRKHSTJS.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" rowspan="4"><a href="#WRKHSTJS.JOB"><b>JOB</b></a></td>
<td valign="top">Job entry</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="4">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top">Element 1: Job</td>
<td valign="top">
<i>Generic name, name</i>, <b><u>*ALL</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Group</td>
<td valign="top">
<i>Generic name, name</i>, <b><u>*ALL</u></b>, *NONE</td>
</tr>
<tr>
<td valign="top">Element 3: Group sequence</td>
<td valign="top">
1-99, <b><u>*ALL</u></b>, *NONE</td>
</tr>
<tr>
<td valign="top"><a href="#WRKHSTJS.STATUS"><b>STATUS</b></a></td>
<td valign="top">Completion status</td>
<td valign="top">Single values: <b><u>*ALL</u></b><br>Other values (up to 7 repetitions): *NORMAL, *ABNORMAL, *ABNGRP, *SBMERROR, *PROCESS, *JOBQ, *CANCELLED, *RESET</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="7"><a href="#WRKHSTJS.PERIOD"><b>PERIOD</b></a></td>
<td valign="top">Time period for history output</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="7">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Start time and date</td>
<td valign="top">
<i>Element list</i></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Element 1: Beginning time</td>
<td valign="top">
<i>Time</i>, <b><u>*AVAIL</u></b></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Element 2: Beginning date</td>
<td valign="top">
<i>Character value</i>, *CURRENT, <b><u>*BEGIN</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: End time and date</td>
<td valign="top">
<i>Element list</i></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Element 1: Ending time</td>
<td valign="top">
<i>Time</i>, <b><u>*AVAIL</u></b></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Element 2: Ending date</td>
<td valign="top">
<i>Character value</i>, *CURRENT, <b><u>*END</u></b></td>
</tr>
<tr>
<td valign="top"><a href="#WRKHSTJS.RMTLOCNAME"><b>RMTLOCNAME</b></a></td>
<td valign="top">Remote location name</td>
<td valign="top"><i>Name</i>, <b><u>*ALL</u></b>, *LCL, *JOBCTL</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#WRKHSTJS.SEQOPT"><b>SEQOPT</b></a></td>
<td valign="top">Sequence option</td>
<td valign="top"><b><u>*DATE</u></b>, *JOB, *GROUP</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#WRKHSTJS.START"><b>START</b></a></td>
<td valign="top">Entries to display first</td>
<td valign="top"><b><u>*LAST</u></b>, *FIRST</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="WRKHSTJS.JOB"></a>
<h3>Job entry (JOB)</h3>
<p>Specifies the name of the job or jobs that you want to work with. You can specify a group and associated sequence numbers for the jobs whose history you want to work with. You can sequence the display by job, by date or by group. When you press Enter, you are taken to the Work with History display where you can perform various actions on the selected job history information.
</p>
<p><b>Element 1: Job</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>You want to work with Advanced Job Scheduler history for all jobs that meet the criteria specified in the command.
</dd>
<dt><b><i>generic-name</i></b></dt>
<dd>The job is generic. For example, specifying JOB* would cause all jobs whose names begin with JOB to be included in the Work with History display.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the job that you want to work with.
</dd>
</dl>
<p><b>Element 2: Group</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>You want to work with Advanced Job Scheduler history for all jobs that are members of any group.
</dd>
<dt><b>*NONE</b></dt>
<dd>The job is not a member of a group.
</dd>
<dt><b><i>generic-name</i></b></dt>
<dd>The group is generic. For example, specifying GROUP* would cause all groups whose names begin with GROUP to be included in the Work with History display.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the group for which you want to work with.
</dd>
</dl>
<p><b>Element 3: Group sequence</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All sequence numbers should be included in the jobs that you want to work with.
</dd>
<dt><b>*NONE</b></dt>
<dd>The job does not have a sequence number.
</dd>
<dt><b><i>1-99</i></b></dt>
<dd>Specify the sequence number of the job that you want to work with.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKHSTJS.STATUS"></a>
<h3>Completion status (STATUS)</h3>
<p>Specifies the completion status that you want to use when displaying the Advanced Job Scheduler history information.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Include all jobs in the Work with History display regardless of completion status.
</dd>
</dl>
<p><b>Other values (up to 7 repetitions)</b>
</p>
<dl>
<dt><b>*NORMAL</b></dt>
<dd>The job came to normal end of job completion.
</dd>
<dt><b>*ABNORMAL</b></dt>
<dd>The job completed abnormally. The Advanced Job Scheduler log can be used to determine why the job ended abnormally.
</dd>
<dt><b>*ABNGRP</b></dt>
<dd>The group ended abnormally. This completion status applies to all jobs in the group that did not process because a previous job group did not run successfully.
</dd>
<dt><b>*SBMERROR</b></dt>
<dd>The job did not run successfully because there was an error in the job submission. An example of a submission error would be a job submitted by a user who did not have the proper authority to submit the job.
</dd>
<dt><b>*PROCESS</b></dt>
<dd>The job is currently in process on the system.
</dd>
<dt><b>*JOBQ</b></dt>
<dd>The job is currently in the job queue waiting for processing.
</dd>
<dt><b>*CANCELLED</b></dt>
<dd>The job was cancelled prior to its completion.
</dd>
<dt><b>*RESET</b></dt>
<dd>The job was manually reset.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKHSTJS.PERIOD"></a>
<h3>Time period for history output (PERIOD)</h3>
<p>Specifies the period of time for which the history entries are selected for the display.
</p>
<p><b>Element 1: Start time and date</b>
</p>
<p>Specifies the beginning time and date at or after which history entries are to be included. Any jobs started before the specified time and date are not included in the display.
</p>
<dl>
<dt><b></b></dt>
<dd>
<p><b>Element 1: Beginning time</b>
</p>
<dl>
<dt><b><u>*AVAIL</u></b></dt>
<dd>Any time that is available for the beginning date is included.
</dd>
<dt><b><i>time</i></b></dt>
<dd>Specify the beginning time for the specified beginning date that indicates which history entries are to be included.
<p>The time is specified in 24-hour format and can be specified with or without a time separator:
</p>
<ul>
<li>Without a time separator, specify a string of 4 digits (hhmm) where hh=hours and mm=minutes. Hours and minutes must each be exactly 2 digits (using leading zeros if necessary).
</li>
<li>With a time separator, specify a string of 5 digits where the time separator specified for your job is used to separate the hours, minutes, and seconds. If you enter this command 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>
</dd>
<dt><b></b></dt>
<dd>
<p><b>Element 2: Beginning date</b>
</p>
<dl>
<dt><b><u>*BEGIN</u></b></dt>
<dd>History entries from the beginning of the history entries are included.
</dd>
<dt><b>*CURRENT</b></dt>
<dd>History entries with a current date run date and between the specified beginning and ending times (if specified) are included.
</dd>
<dt><b><i>date</i></b></dt>
<dd>Specify the beginning date. The date must be specified in the job date format.
</dd>
<dt><b><i>number</i></b></dt>
<dd>Specify a number to represent the number of days before the current date that you want to use for the search. An example would be 10. If today's date were 3/12/01 (date format is mm/dd/yy), the Begin date for the Advanced Job Scheduler history would be 3/2/01.
</dd>
</dl>
</dd>
</dl>
<p><b>Element 2: End time and date</b>
</p>
<p>Specifies the ending time and date before which history entries are included. Any job completion times after the specified time and date are not included in the history entries for the display.
</p>
<dl>
<dt><b></b></dt>
<dd>
<p><b>Element 1: Ending time</b>
</p>
<dl>
<dt><b><u>*AVAIL</u></b></dt>
<dd>Any time that is available for the ending date is included.
</dd>
<dt><b><i>time</i></b></dt>
<dd>Specify the ending time for the specified ending date that indicates which history entries are to be included.
</dd>
</dl>
</dd>
<dt><b></b></dt>
<dd>
<p><b>Element 2: Ending date</b>
</p>
<dl>
<dt><b><u>*END</u></b></dt>
<dd>The history entries to the end of the history information are included in the display.
</dd>
<dt><b>*CURRENT</b></dt>
<dd>History entries whose run date is on or before the current date are included in the display.
</dd>
<dt><b><i>date</i></b></dt>
<dd>Specify the ending date. The date must be specified in the job date format.
</dd>
<dt><b><i>number</i></b></dt>
<dd>Specify a number to represent the number of days before the current date that you want to use for the search. An example would be 10. If today's date were 3/22/01 (date format is mm/dd/yy), the End date for the Advanced Job Scheduler history would be 3/12/01.
</dd>
</dl>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKHSTJS.RMTLOCNAME"></a>
<h3>Remote location name (RMTLOCNAME)</h3>
<p>Specifies the remote location and network identification of the system that created the job history that you want to work with.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Selects all job history for all systems in the network.
</dd>
<dt><b>*LCL</b></dt>
<dd>Selects all job history for the local system.
</dd>
<dt><b>*JOBCTL</b></dt>
<dd>Selects all job history using *JOBCTL as the remote location name.
</dd>
<dt><b><i>remote-location-name</i></b></dt>
<dd>Specify the name of the remote location associated with the system whose job history you want to work with.
</dd>
<dt><b><i>network-ID.remote location-name</i></b></dt>
<dd>Specify the network identifier and the name of the remote location associated with the system. Specify these values using the format nnnnnnnn.cccccccc where nnnnnnnn is the network identifier and cccccccc is the remote location name.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKHSTJS.SEQOPT"></a>
<h3>Sequence option (SEQOPT)</h3>
<p>The Work with History display can be sequenced several ways.
</p>
<dl>
<dt><b><u>*DATE</u></b></dt>
<dd>Sequences the Work with History display by date.
</dd>
<dt><b>*JOB</b></dt>
<dd>Sequences the Work with History display by job.
</dd>
<dt><b>*GROUP</b></dt>
<dd>Sequences the Work with History display by group.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKHSTJS.START"></a>
<h3>Entries to display first (START)</h3>
<p>Specifies whether the newest job history entries or the oldest job history entries are shown first. The display station user can roll the display up or down to see other job history entries if the job history entry is on another display screen.
</p>
<dl>
<dt><b><u>*LAST</u></b></dt>
<dd>The last (newest) job history is shown on the bottom line of the display.
</dd>
<dt><b>*FIRST</b></dt>
<dd>The first (oldest) job history is shown on the top line of the display.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="WRKHSTJS.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
WRKHSTJS SEQOPT(*JOB)
</pre>
</p>
<p>This command displays the Work with History panel for all jobs and all groups, sequenced by job.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="WRKHSTJS.ERROR.MESSAGES">Error messages</a></h3>Unknown
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKHSTJS.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>