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

216 lines
7.9 KiB
HTML
Raw 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>Go to Menu (GO)</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="GO.Top_Of_Page"></a>
<h2>Go to Menu (GO)</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="#GO.PARAMETERS.TABLE">Parameters</a><br>
<a href="#GO.COMMAND.EXAMPLES">Examples</a><br>
<a href="#GO.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="GO"></a>
<p>The Go to Menu (GO) command shows the menu requested. This command allows you to specify either a particular menu or a generic menu name. You can optionally specify whether or not to return to the menu from which the command is entered after showing the menu specified.
</p>
<p><b>Using the Previous and Exit Keys</b>
</p>
<p>A menu is placed on an internal menu stack before it is run. If a stack is not available for the menu, one is created. When the Cancel key is pressed for a menu, the previous menu in the stack is shown. Each menu stack is ten elements (menus) deep. When the eleventh menu is placed on the menu stack, the first, or oldest, menu is removed from the stack. This menu cannot be returned to by using the Cancel key.
</p>
<p>Pressing the Exit key returns the user to the last display or menu from which a GO command was entered with RTNPNT(*YES). The display that the user is returned to is found by removing menus from the menu stack until a return point is found. This process may also cause a program in the call stack to return to its calling program unless the program is a return point.
</p>
<p>Pressing either the Exit or Cancel key while viewing help for a menu returns the user to the menu.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>You must have use (*USE) authority for the menu and its display and message files or program (whichever applies).
</li>
<li>You must also have *USE authority for the library where the menu is located.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#GO.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="GO.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="#GO.MENU"><b>MENU</b></a></td>
<td valign="top">Menu</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: Menu</td>
<td valign="top"><i>Generic name, name</i>, *ALL</td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB, *USRLIBL, *ALL, *ALLUSR</td>
</tr><tr>
<td valign="top"><a href="#GO.RTNPNT"><b>RTNPNT</b></a></td>
<td valign="top">Return point</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional, Positional 2</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#GO.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="GO.MENU"></a>
<h3>Menu (MENU)</h3>
<p>Specifies the menu to be shown.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Menu</b>
</p>
<dl>
<dt><b>*ALL</b></dt>
<dd>A list of all menus in the specified library is shown from which you select the menu to be run.
</dd>
<dt><b><i>generic-name</i></b></dt>
<dd>Specify the generic name of the menu to be run. A generic name is a character string that contains one or more characters followed by an asterisk (*). A list of all menus that have names that begin with the same characters as the generic menu name is shown from which you select the menu to be run.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the menu to be shown.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is searched. If no library is specified as the current library for the thread, the QGPL library is searched.
</dd>
</dl>
<dl>
<dt><b>*USRLIBL</b></dt>
<dd>If a current library entry exists in the library list for the current thread, the current library and the libraries in the user portion of the library list are searched. If there is no current library entry, only the libraries in the user portion of the library list are searched.
</dd>
</dl>
<dl>
<dt><b>*ALLUSR</b></dt>
<dd>All user libraries are searched. All libraries with names that do not begin with the letter Q are searched except for the following:
<p>
<pre>
#CGULIB #DSULIB #SEULIB
#COBLIB #RPGLIB
#DFULIB #SDALIB
</pre>
</p>
<p>Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:
</p>
<p>
<pre>
QDSNX QRCLxxxxx QUSRIJS QUSRVxRxMx
QGPL QSRVAGT QUSRINFSKR
QGPL38 QSYS2 QUSRNOTES
QMGTC QSYS2xxxxx QUSROND
QMGTC2 QS36F QUSRPOSGS
QMPGDATA QUSER38 QUSRPOSSA
QMQMDATA QUSRADSM QUSRPYMSVR
QMQMPROC QUSRBRM QUSRRDARS
QPFRDATA QUSRDIRCL QUSRSYS
QRCL QUSRDIRDB QUSRVI
</pre>
</p>
<ol>
<li>'xxxxx' is the number of a primary auxiliary storage pool (ASP).
</li>
<li>A different library name, in the format QUSRVxRxMx, can be created by the user for each previous release supported by IBM to contain any user commands to be compiled in a CL program for the previous release. For the QUSRVxRxMx user library, VxRxMx is the version, release, and modification level of a previous release that IBM continues to support.
</li>
</ol>
</dd>
</dl>
<dl>
<dt><b>*ALL</b></dt>
<dd>All libraries in the system, including QSYS, are searched.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#GO.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="GO.RTNPNT"></a>
<h3>Return point (RTNPNT)</h3>
<p>Specifies whether to return to the display where the command is entered when the Exit key is pressed.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The display where the command is entered is returned to when the Exit key is pressed.
</dd>
<dt><b>*NO</b></dt>
<dd>The display where the command is entered is not returned to when the Exit key is pressed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#GO.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="GO.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
GO MENU(PERSMENU)
</pre>
</p>
<p>This command runs a menu called PERSMENU, located in a library found by searching the library list (*LIBL default value).
</p>
<p>If the Exit key is pressed while PERSMENU is being shown, the display where the GO command was entered (*YES default value on the RTNPNT parameter) is shown.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#GO.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="GO.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF6ACD</b></dt>
<dd>Menu &amp;1 in &amp;2 is wrong version for system.
</dd>
<dt><b>CPF6AC7</b></dt>
<dd>Menu &amp;1 in library &amp;2 not displayed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#GO.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>