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

234 lines
12 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>Set ASP Group (SETASPGRP)</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="SETASPGRP.Top_Of_Page"></a>
<h2>Set ASP Group (SETASPGRP)</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="#SETASPGRP.PARAMETERS.TABLE">Parameters</a><br>
<a href="#SETASPGRP.COMMAND.EXAMPLES">Examples</a><br>
<a href="#SETASPGRP.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="SETASPGRP"></a>
<p>The Set Auxiliary Storage Pool Group (SETASPGRP) command sets the auxiliary storage pool (ASP) group for the current thread. Additionally, this command allows you to change the libraries in the library list for the current thread. If an ASP group had already been set, this command will remove the old ASP group from the current thread and set the specified ASP group for the current thread. Once the specified ASP group has been set for the current thread, all libraries in the independent ASPs in the ASP group are accessible and objects in those libraries can be referenced using regular library-qualified object name syntax. The libraries in the independent ASPs in the specified ASP group plus the libraries in the system ASP (ASP number 1) and basic user ASPs (ASP numbers 2-32) form the <i>library name space</i> for the thread. All libraries in the library list need to be in the new library name space or the library list is not changed and the new ASP group is not set.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>You must have use (*USE) authority to all ASP device descriptions in the ASP group and to all the specified libraries in the library list before the library name space and the library list are changed. If you are not authorized to an ASP device description or to one of the libraries, the ASP group will not be set and the library list will not be changed.
</li>
<li>When *CURUSR is specified for the <b>ASP group (ASPGRP)</b> or <b>Libraries for current thread (USRLIBL)</b> parameter, you must have read (*READ) authority to the job description listed in your user profile and execute (*EXECUTE) authority to the library where the job description is located.
</li>
<li>The SETASPGRP command is not allowed in the following:
<ul>
<li>System jobs QPFRADJ, QJOBSCD, QSYSARB, QSYSARB3, QSYSARB4 and QLUS.
</li>
<li>All subsystem monitor jobs.
</li>
<li>DDM, DRDA, database host server and SQL server jobs once the initial namespace has been established.
</li>
<li>Receive Journal Entry (RCVJRNE) and Delete Journal Receiver (DLTJRNRCV) command exit programs.
</li>
<li>Management Central Registered Inventory Gathering Service (RIGS) Exit Programs (exit point QIBM_QYIV_INVGTRSRV).
</li>
<li>Trigger or format selector programs that run as part of database I/O operations.
</li>
<li>Attention programs (the PGM parameter of the SETATNPGM command).
</li>
<li>Break handling programs (the PGM parameter of the CHGMSGQ command).
</li>
<li>Programming Development Manager (PDM) functions.
</li>
</ul>
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#SETASPGRP.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="SETASPGRP.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="#SETASPGRP.ASPGRP"><b>ASPGRP</b></a></td>
<td valign="top">ASP group</td>
<td valign="top"><i>Name</i>, *CURUSR, *NONE</td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#SETASPGRP.SYSLIBL"><b>SYSLIBL</b></a></td>
<td valign="top">System library list</td>
<td valign="top"><b><u>*CURSYSBAS</u></b>, *SYSVAL</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SETASPGRP.CURLIB"><b>CURLIB</b></a></td>
<td valign="top">Current library</td>
<td valign="top"><i>Name</i>, <b><u>*CURSYSBAS</u></b>, *CURUSR, *CRTDFT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#SETASPGRP.USRLIBL"><b>USRLIBL</b></a></td>
<td valign="top">Libraries for current thread</td>
<td valign="top">Single values: <b><u>*CURSYSBAS</u></b>, *CURUSR, *SYSVAL, *NONE<br>Other values (up to 250 repetitions): <i>Name</i></td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#SETASPGRP.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="SETASPGRP.ASPGRP"></a>
<h3>ASP group (ASPGRP)</h3>
<p>Specifies the name of the auxiliary storage pool (ASP) group to set for the current thread. The ASP group name is the name of the <i>primary</i> ASP device within the ASP group.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b>*CURUSR</b></dt>
<dd>The ASP group is set to the value defined for the <b>Initial ASP group (INLASPGRP)</b> in the default job description of the user profile that the thread is currently running under.
</dd>
<dt><b>*NONE</b></dt>
<dd>Specify for the current thread to have no ASP group. The library name space will not include libraries from any ASP group. Only the libraries in the system ASP and any basic user ASPs will be in the library name space.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the <i>primary</i> ASP in the ASP group to be set for the current thread. All libraries from all ASPs in this ASP group will be included in the library name space.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SETASPGRP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SETASPGRP.SYSLIBL"></a>
<h3>System library list (SYSLIBL)</h3>
<p>Specifies the system part of the library list for the thread in which the command is entered.
</p>
<dl>
<dt><b><u>*CURSYSBAS</u></b></dt>
<dd>The libraries in the system part of the library list of the current thread that are found in the system ASP (ASP number 1) or any configured basic user ASP (ASP numbers 2-32) are used as the new system part of the library list.
</dd>
<dt><b>*SYSVAL</b></dt>
<dd>The system part of the library list of the current thread is set from the current value of system value QSYSLIBL.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SETASPGRP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SETASPGRP.CURLIB"></a>
<h3>Current library (CURLIB)</h3>
<p>Specifies the library to be used in the current library entry of the library list for the thread. If *CURUSR or a library name is specified and the library cannot be found in the new library name space, an error message is sent and the library list and ASP group are not changed.
</p>
<dl>
<dt><b><u>*CURSYSBAS</u></b></dt>
<dd>The library name in the current library entry of the library list is used as the new current library if the library is found in the system ASP (ASP number 1) or any configured basic user ASP (ASP numbers 2-32). If the library name in the current entry is not found in the system ASP or any basic user ASP, the current library entry will be removed from the library list.
</dd>
<dt><b>*CURUSR</b></dt>
<dd>The current library is set to the value defined for the <b>Current library (CURLIB)</b> attribute of the user profile that the thread is currently running under.
</dd>
<dt><b>*CRTDFT</b></dt>
<dd>Changes the library list to remove any name from the current library entry. If objects are created specifying *CURLIB for the library name, library QGPL will be used.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library that replaces the current library entry in the library list.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SETASPGRP.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="SETASPGRP.USRLIBL"></a>
<h3>Libraries for current thread (USRLIBL)</h3>
<p>Specifies the libraries that are placed in the user part of the library list. If *CURUSR or a list of library names is specified and any of these libraries cannot be found in the new library name space, an error message is sent and the library list and ASP group are not changed.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*CURSYSBAS</u></b></dt>
<dd>The libraries in the user part of the library list of the current thread that are found in the system ASP (ASP number 1) or any configured basic user ASP (ASP numbers 2-32) are used as the new user part of the library list.
</dd>
<dt><b>*CURUSR</b></dt>
<dd>The user part of the library list for the thread is set to the value defined for the <b>Initial library list (INLLIBL)</b> in the default job description of the user profile that the thread is currently running under.
</dd>
<dt><b>*SYSVAL</b></dt>
<dd>The user part of the library list is set from the current value of system value QUSRLIBL.
</dd>
<dt><b>*NONE</b></dt>
<dd>Changes the user part of the library list to remove all library names.
</dd>
</dl>
<p><b>Other values (up to 250 repetitions)</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the names of the libraries to be used as the user part of the library list, in the order in which they are to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SETASPGRP.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="SETASPGRP.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Set New ASP Group</b>
</p>
<p>
<pre>
SETASPGRP ASPGRP(WAREHOUSE1) SYSLIBL(*SYSVAL) CURLIB(*CURUSR)
USRLIBL(*CURSYSBAS)
</pre>
</p>
<p>This command will set the auxiliary storage pool (ASP) group for the thread in which the command runs to be WAREHOUSE1. This will change the library name space for the thread to include all libraries in any of the independent ASPs in the ASP group identified by the independent ASP device named WAREHOUSE1. The system part of the library list will be set from system value QSYSLIBL. The current library entry of the library list will be set from the <i>Current library</i> value defined in the user profile that the thread is currently running under. The user part of the library list will be set using the current user part of the library list and removing any libraries that are not found in the system ASP or configured basic user ASPs.
</p>
<p><b>Example 2: Set to No ASP Group</b>
</p>
<p>
<pre>
SETASPGRP ASPGRP(*NONE) SYSLIBL(*CURSYSBAS) CURLIB(*CRTDFT)
USRLIBL(*NONE)
</pre>
</p>
<p>This command will remove any ASP group for the thread in which the command runs. This will change the library name space for the thread to include only those libraries in the system ASP (ASP number 1) and basic user ASPs (ASP numbers 2-32). The system part of the library list will be set using the current system part of the library list and removing any libraries that are not found in the system ASP or configured basic user ASPs. The current library entry of the library list will be changed to be empty which will cause library QGPL to be used as the current library. The user part of the library list will be changed to be empty.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#SETASPGRP.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="SETASPGRP.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPFB8E9</b></dt>
<dd>ASP group &amp;1 not set for thread &amp;2.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#SETASPGRP.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>