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

252 lines
9.3 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>Transfer to Group Job (TFRGRPJOB)</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="TFRGRPJOB.Top_Of_Page"></a>
<h2>Transfer to Group Job (TFRGRPJOB)</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="#TFRGRPJOB.PARAMETERS.TABLE">Parameters</a><br>
<a href="#TFRGRPJOB.COMMAND.EXAMPLES">Examples</a><br>
<a href="#TFRGRPJOB.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="TFRGRPJOB"></a>
<p>The Transfer to Group Job (TFRGRPJOB) command suspends the job that issued the TFRGRPJOB command, and the group job specified by the <b>Group job (GRPJOB)</b> parameter is resumed (if it already exists) or is created (if it does not exist). In both cases, control is transferred to the job specified by the GRPJOB parameter. The job issuing the TFRGRPJOB command remains suspended until control is passed back to it and the job is resumed.
</p>
<p><b>Restrictions:</b>
</p>
<ol>
<li>To use this command, you must have:
<ul>
<li>use (*USE) authority to the initial group program and execute (*EXECUTE) authority to the library that contains that program.
</li>
</ul>
</li>
</ol>
<p><b>Notes:</b>
</p>
<ol>
<li>The job associated with an active subsystem can only find objects that exist in the system auxiliary storage pool (ASP) or in a basic user ASP. Therefore, objects that are referenced by this command should exist in the system ASP or in a basic user ASP.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#TFRGRPJOB.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="TFRGRPJOB.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="#TFRGRPJOB.GRPJOB"><b>GRPJOB</b></a></td>
<td valign="top">Group job</td>
<td valign="top"><i>Name</i>, <b><u>*PRV</u></b>, *SELECT</td>
<td valign="top">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#TFRGRPJOB.INLGRPPGM"><b>INLGRPPGM</b></a></td>
<td valign="top">Initial group program</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Initial group program</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="#TFRGRPJOB.SPCENV"><b>SPCENV</b></a></td>
<td valign="top">Special environment</td>
<td valign="top"><b><u>*DFT</u></b>, *INLGRPPGM, *S36, *NONE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#TFRGRPJOB.RSTDSP"><b>RSTDSP</b></a></td>
<td valign="top">Restore display</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#TFRGRPJOB.TEXT"><b>TEXT</b></a></td>
<td valign="top">Text 'description'</td>
<td valign="top"><i>Character value</i>, <b><u>*BLANK</u></b></td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#TFRGRPJOB.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="TFRGRPJOB.GRPJOB"></a>
<h3>Group job (GRPJOB)</h3>
<p>Specifies the group job to which control is transferred.
</p>
<dl>
<dt><b><u>*PRV</u></b></dt>
<dd>Control is transferred to the previously active job in the group. If the previously active job no longer exists, then the most recently active job in the group is resumed. This special value is valid only if there is another group job in the group.
</dd>
<dt><b>*SELECT</b></dt>
<dd>The Group Job Selection display is shown. You can choose which group job to transfer to or create a new group job and transfer to it.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the group job to which control is transferred.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#TFRGRPJOB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="TFRGRPJOB.INLGRPPGM"></a>
<h3>Initial group program (INLGRPPGM)</h3>
<p>Specifies the qualified name of the job's first group program. This parameter only has meaning when a group job is created. If the group job being transferred to already exists, this parameter is ignored.
</p>
<p><b>Qualifier 1: Initial group program</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the job's first group program.
</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 program is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#TFRGRPJOB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="TFRGRPJOB.SPCENV"></a>
<h3>Special environment (SPCENV)</h3>
<p>Specifies the environment in which the group job starts. This parameter is valid only when this command creates a group job. If control is transferring to an existing group, this parameter is ignored.
</p>
<dl>
<dt><b><u>*DFT</u></b></dt>
<dd>The group job starts in the environment in which the command is run. The group job starts in the System/36 environment if one of the following is true:
<ul>
<li>The System/36 environment is active in the job in which this command is running
</li>
<li>The user profile specifies that the user runs in the System/36 environment, and the first program called in the group job is QCMD.
</li>
</ul>
</dd>
<dt><b>*INLGRPPGM</b></dt>
<dd>The new group starts in the environment determined by the first group called in the group job. If the first group program is QCMD, the special environment value in the user profile is used to determine the environment.
</dd>
<dt><b>*S36</b></dt>
<dd>The new group starts in the System/36 environment.
</dd>
<dt><b>*NONE</b></dt>
<dd>The new group does not start in any special environment.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#TFRGRPJOB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="TFRGRPJOB.RSTDSP"></a>
<h3>Restore display (RSTDSP)</h3>
<p>Specifies whether data being shown at a display device by this display file is saved at the time the file is suspended (made temporarily inactive) so that a different display file can be used to show different data on the same device.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>The data being shown by this file is not saved when the file is suspended.
</dd>
<dt><b>*YES</b></dt>
<dd>The data being shown when the file is suspended is saved so it can be restored to the display of the device when the file is used again.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#TFRGRPJOB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="TFRGRPJOB.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>Specifies text that describes the group job. This parameter only has meaning when a group job is created. If the group job being transferred to already exists, this parameter is ignored.
</p>
<dl>
<dt><b><u>*BLANK</u></b></dt>
<dd>The text is all blanks.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify a maximum of 50 characters of text, enclosed in apostrophes if necessary.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#TFRGRPJOB.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="TFRGRPJOB.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
TFRGRPJOB GRPJOB(GROUPJ1) INLGRPPGM(QGPL/PROGRAM1)
</pre>
</p>
<p>This command suspends running of the current job. If group job GROUPJ1 already exists, it is resumed at the point where it was suspended (the next high-level language command following the TFRGRPJOB request).
</p>
<p>If group job GROUPJ1 does not exist, group job GROUPJ1 is created and runs the program PROGRAM1 in library QGPL.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#TFRGRPJOB.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="TFRGRPJOB.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF1E15</b></dt>
<dd>Problem occurred while calling Operational Assistant.
</dd>
<dt><b>CPF1310</b></dt>
<dd>Request to transfer to group job failed with reason code &amp;1.
</dd>
<dt><b>CPF1313</b></dt>
<dd>Value &amp;1 for parameter &amp;2 not allowed name.
</dd>
<dt><b>CPF1314</b></dt>
<dd>Value &amp;1 for parameter &amp;2 not allowed.
</dd>
<dt><b>CPF9871</b></dt>
<dd>Error occurred while processing.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#TFRGRPJOB.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>