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

285 lines
10 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>Create Query Management Form (CRTQMFORM)</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="CRTQMFORM.Top_Of_Page"></a>
<h2>Create Query Management Form (CRTQMFORM)</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="#CRTQMFORM.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CRTQMFORM.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CRTQMFORM.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CRTQMFORM"></a>
<p>The Create Query Management Form (CRTQMFORM) command allows you to create a query management form from a specified source file member. The query management form defines how a report is to look when data from running a query is displayed or printed.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CRTQMFORM.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="#CRTQMFORM.QMFORM"><b>QMFORM</b></a></td>
<td valign="top">Query management report form</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: Query management report form</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>*CURLIB</u></b></td>
</tr><tr>
<td valign="top" rowspan="3"><a href="#CRTQMFORM.SRCFILE"><b>SRCFILE</b></a></td>
<td valign="top">Source file</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: Source file</td>
<td valign="top"><i>Name</i>, <b><u>QQMFORMSRC</u></b></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="#CRTQMFORM.SRCMBR"><b>SRCMBR</b></a></td>
<td valign="top">Source member</td>
<td valign="top"><i>Name</i>, <b><u>*QMFORM</u></b></td>
<td valign="top">Optional, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#CRTQMFORM.TEXT"><b>TEXT</b></a></td>
<td valign="top">Text 'description'</td>
<td valign="top"><i>Character value</i>, <b><u>*SRCMBRTXT</u></b>, *BLANK</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTQMFORM.AUT"><b>AUT</b></a></td>
<td valign="top">Authority</td>
<td valign="top"><i>Name</i>, *USE, *CHANGE, *ALL, *EXCLUDE, <b><u>*LIBCRTAUT</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTQMFORM.REPLACE"><b>REPLACE</b></a></td>
<td valign="top">Replace object</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CRTQMFORM.QMFORM"></a>
<h3>Query management report form (QMFORM)</h3>
<p>Specifies the query management form to be created.
</p>
<p>This is a required parameter.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Query management report form</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the form to be created.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*CURLIB</u></b></dt>
<dd>The current library for the job is used to locate the form. If no library is specified as the current library for the job, the QGPL library is used.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library where the form is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTQMFORM.SRCFILE"></a>
<h3>Source file (SRCFILE)</h3>
<p>Specifies the source file containing the source for the form being created. The form is identified by the name specified on the QMFORM parameter.
</p>
<p><b>Qualifier 1: Source file</b>
</p>
<dl>
<dt><b><u>QQMFORMSRC</u></b></dt>
<dd>IBM-supplied source file QQMFORMSRC contains the source for the form to be created.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the file containing the source for the form to be created.
</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 job is searched. If no library is specified as the current library for the job, the QGPL library is used.
</dd>
<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="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTQMFORM.SRCMBR"></a>
<h3>Source member (SRCMBR)</h3>
<p>Specifies the source file member containing the form source to be created.
</p>
<dl>
<dt><b><u>*QMFORM</u></b></dt>
<dd>The member name is the same as the form name specified on the QMFORM parameter.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the member that contains the form source.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTQMFORM.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>Specifies the text that briefly describes the query management form.
</p>
<dl>
<dt><b><u>*SRCMBRTXT</u></b></dt>
<dd>The descriptive text for the object being created is the same as the text description of the source member. If the source member has no text description, or if it is blank, the comment inside the externalized form is used if one exists; otherwise *BLANK is assumed.
</dd>
<dt><b>*BLANK</b></dt>
<dd>No text is specified. If this command causes an object to be replaced, any existing text for the object is replaced with blank text.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify no more than 50 characters of text, enclosed in apostrophes. The apostrophes are not part of the 50-character string.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTQMFORM.AUT"></a>
<h3>Authority (AUT)</h3>
<p>Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.
</p>
<dl>
<dt><b><u>*LIBCRTAUT</u></b></dt>
<dd>The system determines the authority for the object by using the value specified for the <b>Create authority (CRTAUT)</b> parameter on the Create Library command (CRTLIB) for the library containing the object to be created. If the value specified for the CRTAUT parameter is changed, the new value will not affect any existing objects.
</dd>
</dl>
<dl>
<dt><b>*CHANGE</b></dt>
<dd>The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
</dd>
</dl>
<dl>
<dt><b>*ALL</b></dt>
<dd>The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
</dd>
</dl>
<dl>
<dt><b>*USE</b></dt>
<dd>The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
</dd>
</dl>
<dl>
<dt><b>*EXCLUDE</b></dt>
<dd>The user cannot access the object.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of an authorization list to be used for authority to the object. Users included in the authorization list are granted authority to the object as specified in the list. The authorization list must exist when the object is created.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTQMFORM.REPLACE"></a>
<h3>Replace object (REPLACE)</h3>
<p>Specifies whether an existing object with the same name and type in the library to receive the output is replaced with the output of this command.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>An existing object is replaced with the output of this command.
</dd>
<dt><b>*NO</b></dt>
<dd>An existing object is not replaced with the output of this command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTQMFORM.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
CRTQMFORM QMFORM(FORMEMP) SRCFILE(RPTLIB/FORMSRC)
</pre>
</p>
<p>This command creates a form named FORMEMP in the current library. The form source is in member FORMEMP, which is located in source file FORMSRC in library RPTLIB.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTQMFORM.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>QWM2701</b></dt>
<dd>&amp;1 command failed.
</dd>
<dt><b>QWM2703</b></dt>
<dd>&amp;1 command ended.
</dd>
<dt><b>QWM2705</b></dt>
<dd>Source file &amp;1 in &amp;2 not available.
</dd>
<dt><b>QWM2706</b></dt>
<dd>&amp;1 in &amp;2 not replaced.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTQMFORM.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>