253 lines
9.1 KiB
HTML
253 lines
9.1 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>Change Group Attributes (CHGGRPA)</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="CHGGRPA.Top_Of_Page"></a>
|
|
<h2>Change Group Attributes (CHGGRPA)</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="#CHGGRPA.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#CHGGRPA.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#CHGGRPA.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="CHGGRPA"></a>
|
|
<p>The Change Group Attributes (CHGGRPA) command changes the group attributes of an interactive job. The CHGGRPA command must be used to change an interactive job into a group job before a Transfer to Group Job (TFRGRPJOB) command can be used. The following attributes can be changed:
|
|
</p>
|
|
<ul>
|
|
<li>An interactive job can be changed into a group job.
|
|
</li>
|
|
<li>A group job can be changed into a non-group, interactive job.
|
|
</li>
|
|
<li>A message queue can be associated with a group.
|
|
</li>
|
|
<li>A message queue can be disassociated from a group.
|
|
</li>
|
|
<li>A group job's descriptive text can be changed.
|
|
</li>
|
|
</ul>
|
|
<p>More information about group jobs 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>To use this command, you must have:
|
|
<ul>
|
|
<li>use (*USE) authority to the message queue (MSGQ) and execute (*EXECUTE) authority to the library that contains that message queue.
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGGRPA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="CHGGRPA.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="#CHGGRPA.GRPJOB"><b>GRPJOB</b></a></td>
|
|
<td valign="top">Group job</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*SAME</u></b>, *NONE</td>
|
|
<td valign="top">Optional, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#CHGGRPA.MSGQ"><b>MSGQ</b></a></td>
|
|
<td valign="top">Message queue</td>
|
|
<td valign="top">Single values: <b><u>*SAME</u></b>, *NONE<br>Other values: <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional, Positional 2</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="#CHGGRPA.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="#CHGGRPA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="CHGGRPA.GRPJOB"></a>
|
|
<h3>Group job (GRPJOB)</h3>
|
|
<p>Specifies the group job name assigned to the job.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SAME</u></b></dt>
|
|
<dd>The group job name does not change.
|
|
</dd>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>The only active job in a group is made a non-group interactive job, the group data area (*GDA) is deleted, and the group message queue (if there is one) is disassociated from the group; the mode of the group message queue, however, does not change.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the group job name that is assigned to the interactive job issuing this command. This causes the job to become a group job and also causes the group data area (*GDA) to be created. This character type data area is 512 bytes long, and at first, it is filled with blanks. Specifying a group job name is valid only when the job is not a group job. Once a job is assigned a group job name, that name cannot be changed (except to set it to *NONE if it is the only active job in the group).
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGGRPA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CHGGRPA.MSGQ"></a>
|
|
<h3>Message queue (MSGQ)</h3>
|
|
<p>Specifies the name of a message queue that is associated with a group. This message queue must exist, but it does not necessarily need to be allocated to the job at the time this command is issued.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SAME</u></b></dt>
|
|
<dd>The message queue associated with the group does not change.
|
|
</dd>
|
|
<dt><b>*NONE</b></dt>
|
|
<dd>No message queue is associated with the group. If a message queue is associated with the group, it is disassociated from the group (but the mode does not change).
|
|
</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 that is associated with the group.
|
|
</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 message queue is located.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGGRPA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="CHGGRPA.TEXT"></a>
|
|
<h3>Text 'description' (TEXT)</h3>
|
|
<p>Specifies up to 50 characters of text that describe the group job. This text appears on the Group Job Selection Display for the Transfer to Group Job (TFRGRPJOB) Command.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SAME</u></b></dt>
|
|
<dd>The text does not change.
|
|
</dd>
|
|
<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="#CHGGRPA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CHGGRPA.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Changing an Interactive Job to a Group Job</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CHGGRPA GRPJOB(GROUPJ1) MSGQ(QGPL/GRPMSGQ)
|
|
</pre>
|
|
</p>
|
|
<p>An interactive job is first changed to a group job before it is allowed to create other group jobs at the work station. This command changes a work station job into a group job with the group job name GROUPJ1; a message queue is associated with the group and (as long as it is in break or notify mode in the job issuing a TFRGRPJOB or End Group Job (ENDGRPJOB) command) is allocated to the active job in the group. The group data area (*GDA) is also created.
|
|
</p>
|
|
<p><b>Example 2: Changing a Group Job to a Nongroup Job</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CHGGRPA GRPJOB(*NONE)
|
|
</pre>
|
|
</p>
|
|
<p>Assume that the job in the previous example issues this command. Assume also that the job is the only active job in the group. Group job GROUPJ1 is changed into a nongroup, interactive job. The group job name is removed, and the group data area (*GDA) is deleted. The change from a group job into a nongroup job occurs only if it is the only active job in the group.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGGRPA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="CHGGRPA.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF1305</b></dt>
|
|
<dd>Changing group job name not allowed.
|
|
</dd>
|
|
<dt><b>CPF1306</b></dt>
|
|
<dd>Specifying GRPJOB(*NONE) not allowed at this time.
|
|
</dd>
|
|
<dt><b>CPF1307</b></dt>
|
|
<dd>Group job &1 already belongs to this group.
|
|
</dd>
|
|
<dt><b>CPF1308</b></dt>
|
|
<dd>Parameters that do not agree were found.
|
|
</dd>
|
|
<dt><b>CPF1309</b></dt>
|
|
<dd>Subsystem cannot complete the &1 command.
|
|
</dd>
|
|
<dt><b>CPF1312</b></dt>
|
|
<dd>Change group attribute request not valid; job not group job.
|
|
</dd>
|
|
<dt><b>CPF1313</b></dt>
|
|
<dd>Value &1 for parameter &2 not allowed name.
|
|
</dd>
|
|
<dt><b>CPF1316</b></dt>
|
|
<dd>&1 in &2 not allowed as group message queue.
|
|
</dd>
|
|
<dt><b>CPF1317</b></dt>
|
|
<dd>No response from subsystem for job &3/&2/&1.
|
|
</dd>
|
|
<dt><b>CPF1328</b></dt>
|
|
<dd>No authority to use queue &2 in &3.
|
|
</dd>
|
|
<dt><b>CPF1329</b></dt>
|
|
<dd>Message queue &1 in &2 not found.
|
|
</dd>
|
|
<dt><b>CPF1330</b></dt>
|
|
<dd>Message queue &1 in &2 not available.
|
|
</dd>
|
|
<dt><b>CPF1331</b></dt>
|
|
<dd>&1 in &2 not allowed as group message queue.
|
|
</dd>
|
|
<dt><b>CPF1351</b></dt>
|
|
<dd>Function check occurred in subsystem for job &3/&2/&1.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#CHGGRPA.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|