232 lines
9.3 KiB
HTML
232 lines
9.3 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>Transfer Batch Job (TFRBCHJOB)</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="TFRBCHJOB.Top_Of_Page"></a>
|
||
|
<h2>Transfer Batch Job (TFRBCHJOB)</h2>
|
||
|
<table width="100%">
|
||
|
<tr>
|
||
|
<td valign="top" align="left"><b>Where allowed to run: </b>
|
||
|
<ul><li>Batch job (*BATCH)</li>
|
||
|
<li>Batch program (*BPGM)</li>
|
||
|
<li>Batch REXX procedure (*BREXX)</li>
|
||
|
<li>Using QCMDEXEC, QCAEXEC, or QCAPCMD API (*EXEC)</li>
|
||
|
</ul><b>Threadsafe: </b>No
|
||
|
</td>
|
||
|
<td valign="top" align="right">
|
||
|
<a href="#TFRBCHJOB.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#TFRBCHJOB.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#TFRBCHJOB.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="TFRBCHJOB"></a>
|
||
|
<p>The Transfer Batch Job (TFRBCHJOB) command transfers a batch job to the specified job queue. The job queue does not have to be allocated to an active subsystem at the time of the batch job transfer. The batch job that is transferred is the one in which this command is issued. Routing data and request data can be specified for the batch job when it is transferred. The routing data specified is processed in the subsystem in which the job queue is active. The request data follows other request data for the job. The transferred batch job resumes running the request data following the transfer.
|
||
|
</p>
|
||
|
<p><b>Restrictions:</b>
|
||
|
</p>
|
||
|
<ol>
|
||
|
<li>To use this command, you must have:
|
||
|
<ul>
|
||
|
<li>use (*USE) authority to the job queue and execute (*EXECUTE) authority to the library that contains that job queue.
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li>The job being transferred must be a batch job that started from a job queue.
|
||
|
</li>
|
||
|
<li>The TFRBCHJOB command is not allowed to run in a batch communications job (a batch job that was started as the result of a program start request) or a batch immediate job.
|
||
|
</li>
|
||
|
</ol>
|
||
|
<p><b>Notes:</b>
|
||
|
</p>
|
||
|
<ol>
|
||
|
<li>Running this command causes loss of spooled inline files because they cannot be accessed in the new routing step.
|
||
|
</li>
|
||
|
<li>If you are working in a System/36 environment, the TFRBCHJOB command does not transfer the System/36 environment to the new routing step.
|
||
|
</li>
|
||
|
<li>If objects allocated to the previous routing step, are needed in the new routing step, they must be allocated again. If files opened in the previous routing step, are needed in the new routing step, they must be opened again.
|
||
|
</li>
|
||
|
<li>If the TFRBCHJOB command is issued in a CL program, all subsequent commands in the CL program are bypassed.
|
||
|
</li>
|
||
|
<li>A batch job transferred to a job queue by the TFRBCHJOB command exists through an initial program load (IPL) if the batch job was residing on the job queue at the time the system was powered down. A batch job's temporary objects are destroyed during the power down.
|
||
|
</li>
|
||
|
<li>The QTEMP library of a batch job that has been transferred by the TFRBCHJOB command is always empty when the next routing step is started. Caution must be used with the library list in conjunction with a batch job that was transferred to a job queue by the TFRBCHJOB command. The TFRBCHJOB function saves the library list to recover the job on a job queue if an IPL occurs. When the routing step for the transferred batch job is started, the libraries in the saved library list must exist in the system or the job's routing step ends.
|
||
|
</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TFRBCHJOB.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="TFRBCHJOB.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="3"><a href="#TFRBCHJOB.JOBQ"><b>JOBQ</b></a></td>
|
||
|
<td valign="top">Job queue</td>
|
||
|
<td valign="top"><i>Qualified object name</i></td>
|
||
|
<td valign="top" rowspan="3">Required, Positional 1</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="#TFRBCHJOB.RTGDTA"><b>RTGDTA</b></a></td>
|
||
|
<td valign="top">Routing data</td>
|
||
|
<td valign="top"><i>Character value</i>, <b><u>QCMDB</u></b>, *RQSDTA</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#TFRBCHJOB.RQSDTA"><b>RQSDTA</b></a></td>
|
||
|
<td valign="top">Request data or command</td>
|
||
|
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b>, *RTGDTA</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TFRBCHJOB.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="TFRBCHJOB.JOBQ"></a>
|
||
|
<h3>Job queue (JOBQ)</h3>
|
||
|
<p>Specifies the qualified name of the job queue to which the job is transferred.
|
||
|
</p>
|
||
|
<p>This is a required parameter.
|
||
|
</p>
|
||
|
<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 library where the job queue is located.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TFRBCHJOB.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="TFRBCHJOB.RTGDTA"></a>
|
||
|
<h3>Routing data (RTGDTA)</h3>
|
||
|
<p>Specifies the routing data used to start the next routing step in the job. The routing data is used to determine the routing entry that identifies the program that the job runs.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>QCMDB</u></b></dt>
|
||
|
<dd>This routing data matches a routing entry in the IBM-supplied subsystem description, which starts a routing step processed by the IBM-supplied control language processor QCMD.
|
||
|
</dd>
|
||
|
<dt><b>*RQSDTA</b></dt>
|
||
|
<dd>The first 80 characters of the request data specified in the RQSDTA parameter of this command are used as the routing data for the routing step.
|
||
|
</dd>
|
||
|
<dt><b><i>character-value</i></b></dt>
|
||
|
<dd>Specify the character string that is used as the routing data for starting the routing step. A maximum of 80 characters can be entered, enclosed in apostrophes if necessary.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TFRBCHJOB.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="TFRBCHJOB.RQSDTA"></a>
|
||
|
<h3>Request data or command (RQSDTA)</h3>
|
||
|
<p>Specifies the request data that is placed as the last entry in this job's message queue. The request data can be a CL command to be run or a string of characters used by another program.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>No request data is placed in the job's message queue.
|
||
|
</dd>
|
||
|
<dt><b>*RTGDTA</b></dt>
|
||
|
<dd>The routing data specified in the <b>Routing data (RTGDTA)</b> parameter is placed at the end of the job's message queue.
|
||
|
</dd>
|
||
|
<dt><b><i>character-value</i></b></dt>
|
||
|
<dd>Specify the character string that is placed at the end of the job's message queue for use by the new routing step or some subsequent routing step in the job. A maximum of 256 characters can be entered, enclosed in apostrophes if necessary.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TFRBCHJOB.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="TFRBCHJOB.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p>
|
||
|
<pre>
|
||
|
TFRBCHJOB JOBQ(QGPL/APPLICQ) RTGDTA(APPLICS)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command transfers the batch job in which the command is entered to the APPLICQ job queue that is in the QGPL library. The job is routed using the routing data APPLICS. The job must be a batch job.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TFRBCHJOB.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="TFRBCHJOB.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPF1288</b></dt>
|
||
|
<dd>Job queue &1 in library &2 damaged.
|
||
|
</dd>
|
||
|
<dt><b>CPF1289</b></dt>
|
||
|
<dd>Transfer job is not allowed.
|
||
|
</dd>
|
||
|
<dt><b>CPF1291</b></dt>
|
||
|
<dd>Job &3/&2/&1 cannot be transferred.
|
||
|
</dd>
|
||
|
<dt><b>CPF1368</b></dt>
|
||
|
<dd>&1 not authorized to job queue &2 in library &3.
|
||
|
</dd>
|
||
|
<dt><b>CPF1369</b></dt>
|
||
|
<dd>Job queue &1 in &2 not found.
|
||
|
</dd>
|
||
|
<dt><b>CPF1370</b></dt>
|
||
|
<dd>Job queue &1 in &2 not accessible.
|
||
|
</dd>
|
||
|
<dt><b>CPF1372</b></dt>
|
||
|
<dd>Job not transferred. Job currently being ended.
|
||
|
</dd>
|
||
|
<dt><b>CPF1375</b></dt>
|
||
|
<dd>Job not transferred. Single active job not allowed to transfer.
|
||
|
</dd>
|
||
|
<dt><b>CPF1376</b></dt>
|
||
|
<dd>Library on library search list deleted.
|
||
|
</dd>
|
||
|
<dt><b>CPF1377</b></dt>
|
||
|
<dd>Library on library search list damaged.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#TFRBCHJOB.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|