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

861 lines
32 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>Create Auto Report RPG Program (CRTRPTPGM)</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="CRTRPTPGM.Top_Of_Page"></a>
<h2>Create Auto Report RPG Program (CRTRPTPGM)</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="#CRTRPTPGM.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CRTRPTPGM.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CRTRPTPGM.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CRTRPTPGM"></a>
<p>The command Create Auto Report Program (CRTRPTPGM) is used to start the RPG/400 compiler for automatic reports.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CRTRPTPGM.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="#CRTRPTPGM.PGM"><b>PGM</b></a></td>
<td valign="top">Program</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Program</td>
<td valign="top"><i>Name</i>, <b><u>*CTLSPEC</u></b></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="#CRTRPTPGM.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>QRPGSRC</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="#CRTRPTPGM.SRCMBR"><b>SRCMBR</b></a></td>
<td valign="top">Source member</td>
<td valign="top"><i>Name</i>, <b><u>*PGM</u></b></td>
<td valign="top">Optional, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.GENLVL"><b>GENLVL</b></a></td>
<td valign="top">Generation severity level</td>
<td valign="top">0-99, <b><u>9</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.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="#CRTRPTPGM.OPTION"><b>OPTION</b></a></td>
<td valign="top">Source listing options</td>
<td valign="top">Values (up to 14 repetitions): *SOURCE, *NOSOURCE, *SRC, *NOSRC, *XREF, *NOXREF, *GEN, *NOGEN, *DUMP, *NODUMP, *SECLVL, *NOSECLVL, *LSTDBG, *NOLSTDBG</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.GENOPT"><b>GENOPT</b></a></td>
<td valign="top">Generation options</td>
<td valign="top">Values (up to 10 repetitions): *LIST, *NOLIST, *XREF, *NOXREF, *ATR, *NOATR, *DUMP, *NODUMP, *PATCH, *NOPATCH, *OPTIMIZE, *NOOPTIMIZE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.INDENT"><b>INDENT</b></a></td>
<td valign="top">Source listing indentation</td>
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.CVTOPT"><b>CVTOPT</b></a></td>
<td valign="top">Type conversion options</td>
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values (up to 3 repetitions): *DATETIME, *VARCHAR, *GRAPHIC</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CRTRPTPGM.SRTSEQ"><b>SRTSEQ</b></a></td>
<td valign="top">Sort sequence</td>
<td valign="top">Single values: <b><u>*HEX</u></b>, *JOB, *JOBRUN, *LANGIDUNQ, *LANGIDSHR<br>Other values: <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Sort sequence</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="#CRTRPTPGM.LANGID"><b>LANGID</b></a></td>
<td valign="top">Language identifier</td>
<td valign="top"><i>Name</i>, <b><u>*JOBRUN</u></b>, *JOB</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CRTRPTPGM.PRTFILE"><b>PRTFILE</b></a></td>
<td valign="top">Print file</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Print file</td>
<td valign="top"><i>Name</i>, <b><u>QSYSPRT</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="#CRTRPTPGM.RPTOPT"><b>RPTOPT</b></a></td>
<td valign="top">Auto report options</td>
<td valign="top">Values (up to 10 repetitions): *SOURCE, *NOSOURCE, *SRC, *NOSRC, *FLOW, *NOFLOW, *AST, *NOAST, *DATE, *NODATE, *COMPILE, *NOCOMPILE, *SECLVL, *NOSECLVL</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CRTRPTPGM.OUTFILE"><b>OUTFILE</b></a></td>
<td valign="top">Auto report output file</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Auto report output file</td>
<td valign="top"><i>Name</i>, <b><u>*NONE</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="#CRTRPTPGM.OUTMBR"><b>OUTMBR</b></a></td>
<td valign="top">Auto report output member</td>
<td valign="top"><i>Name</i>, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.REPLACE"><b>REPLACE</b></a></td>
<td valign="top">Replace program</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.TGTRLS"><b>TGTRLS</b></a></td>
<td valign="top">Target release</td>
<td valign="top"><i>Simple name</i>, <b><u>*CURRENT</u></b>, *PRV</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.USRPRF"><b>USRPRF</b></a></td>
<td valign="top">User profile</td>
<td valign="top"><b><u>*USER</u></b>, *OWNER</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.AUT"><b>AUT</b></a></td>
<td valign="top">Authority</td>
<td valign="top"><i>Name</i>, <b><u>*LIBCRTAUT</u></b>, *ALL, *CHANGE, *USE, *EXCLUDE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.PHSTRC"><b>PHSTRC</b></a></td>
<td valign="top">Phase trace</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.ITDUMP"><b>ITDUMP</b></a></td>
<td valign="top">Intermediate text dump</td>
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.SNPDUMP"><b>SNPDUMP</b></a></td>
<td valign="top">Snap dump</td>
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.CODELIST"><b>CODELIST</b></a></td>
<td valign="top">Codelist</td>
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b>, *ALL</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.IGNDECERR"><b>IGNDECERR</b></a></td>
<td valign="top">Ignore decimal data error</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CRTRPTPGM.ALWNULL"><b>ALWNULL</b></a></td>
<td valign="top">Allow null values</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CRTRPTPGM.PGM"></a>
<h3>Program (PGM)</h3>
<p>Specifies program name and library for the compiled RPG program.
</p>
<dl>
<dt><b><u>*CTLSPEC</u></b></dt>
<dd>The program name indicated in positions 75 - 80 of the Control specification.
</dd>
<dt><b><i>program-name</i></b></dt>
<dd>Enter the name by which the program will be known.
</dd>
<dt><b><u>*CURLIB</u></b></dt>
<dd>The current library will be used. If you have not specified a current library, QGPL will be used.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Enter the name of the library where the compiled program is to be stored.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.SRCFILE"></a>
<h3>Source file (SRCFILE)</h3>
<p>Specifies the name of the source file that contains the source program.
</p>
<dl>
<dt><b><u>QRPGSRC</u></b></dt>
<dd>The default source file, QRPGSRC, contains the RPG program to be compiled.
</dd>
<dt><b><i>source-file-name</i></b></dt>
<dd>Enter the source file name that contains the RPG source program to be compiled.
</dd>
<dt><b><u>*LIBL</u></b></dt>
<dd>The system searches the library list to find the library where the source file is located.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library will be used. If you have not specified a current library, QGPL will be used.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Enter the name of the library where the source file is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.SRCMBR"></a>
<h3>Source member (SRCMBR)</h3>
<p>Specifies the name of the member of the source file.
</p>
<dl>
<dt><b><u>*PGM</u></b></dt>
<dd>The name specified by the PGM parameter as the source file member name.
</dd>
<dt><b><i>source-file-member-name</i></b></dt>
<dd>Enter the name of the member that contains the source program.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.GENLVL"></a>
<h3>Generation severity level (GENLVL)</h3>
<p>Specifies the diagnostic-message severity level at which creation of a program object stops.
</p>
<dl>
<dt><b><u>9</u></b></dt>
<dd>The default severity level is 9.
</dd>
<dt><b><i>severity-level-value</i></b></dt>
<dd>Enter a two-digit number 01 through 50.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>Specifies what text is used to describe the program function.
</p>
<dl>
<dt><b><u>*SRCMBRTXT</u></b></dt>
<dd>Use the text description from the source file member.
</dd>
<dt><b>*BLANK</b></dt>
<dd>No text appears.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.OPTION"></a>
<h3>Source listing options (OPTION)</h3>
<p>Specifies options to use when the source program is compiled.
</p>
<dl>
<dt><b><u>*SOURCE</u> or *SRC</b></dt>
<dd>The compiler supplies a source listing.
</dd>
<dt><b>*NOSOURCE or *NOSRC</b></dt>
<dd>The compiler does not supply a source listing.
</dd>
<dt><b><u>*XREF</u></b></dt>
<dd>The compiler supplies a cross-reference listing.
</dd>
<dt><b>*NOXREF</b></dt>
<dd>The compiler does not supply a cross-reference listing.
</dd>
<dt><b><u>*GEN</u></b></dt>
<dd>A program object is created that can be run after the program compiles.
</dd>
<dt><b>*NOGEN</b></dt>
<dd>No program object is created.
</dd>
<dt><b><u>*NODUMP</u></b></dt>
<dd>The program template does not print when an error occurs.
</dd>
<dt><b>*DUMP</b></dt>
<dd>The program template prints when an error occurs.
</dd>
<dt><b><u>*NOSECLVL</u></b></dt>
<dd>Message text is not printed.
</dd>
<dt><b>*SECLVL</b></dt>
<dd>Message text is printed.
</dd>
<dt><b><u>*NOLSTDBG</u></b></dt>
<dd>Do not produce a listing view or listing-level debugging information or source-level error information.
</dd>
<dt><b>*LSTDBG</b></dt>
<dd>The compiler produces a listing view, source-level error information, and listing-level debugging information for use with CoOperative Development Environment/400 (CODE/400). Listing-level debugging information is also necessary if you want to use the system debugger (STRDBG OPMSRC(*YES)) to debug OPM and ILE programs at the same time.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.GENOPT"></a>
<h3>Generation options (GENOPT)</h3>
<p>Specifies options to use to create object code.
</p>
<dl>
<dt><b><u>*NOLIST</u></b></dt>
<dd>Does not supply the intermediate representation of the program (IRP) listing.
</dd>
<dt><b>*LIST</b></dt>
<dd>Lists the intermediate representation of the program (IRP).
</dd>
<dt><b><u>*NOXREF</u></b></dt>
<dd>No cross-reference listing is supplied for the intermediate representation of the program (IRP).
</dd>
<dt><b>*XREF</b></dt>
<dd>Supplies a cross-reference listing of all objects defined in the intermediate representation of the program (IRP).
</dd>
<dt><b><u>*NOATR</u></b></dt>
<dd>Does not supply an attribute listing.
</dd>
<dt><b>*ATR</b></dt>
<dd>Lists the attributes for the intermediate representation of a program (IRP) source program.
</dd>
<dt><b><u>*NODUMP</u></b></dt>
<dd>Does not print the program template when an error occurs.
</dd>
<dt><b>*DUMP</b></dt>
<dd>Prints a program template.
</dd>
<dt><b><u>*NOPATCH</u></b></dt>
<dd>Does not reserve a program patch area in the compiled program.
</dd>
<dt><b>*PATCH</b></dt>
<dd>Reserves space in the compiled program for a program patch area.
</dd>
<dt><b><u>*NOOPTIMIZE</u></b></dt>
<dd>The compiler will not perform program optimization.
</dd>
<dt><b>*OPTIMIZE</b></dt>
<dd>The compiler creates a program for more efficient processing.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.INDENT"></a>
<h3>Source listing indentation (INDENT)</h3>
<p>Specifies that DO statements and IF-ELSE clauses will be indented for readability. Also specifies what character is used to connect corresponding DO-ENDDO pairs and IF-ELSE pairs.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Listings are not indented within DO statements or IF-ELSE clauses.
</dd>
<dt><b><i>character-string</i></b></dt>
<dd>Use the given character string to connect corresponding nesting level.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.CVTOPT"></a>
<h3>Type conversion options (CVTOPT)</h3>
<p>Specifies how the RPG/400 compiler handles date, time, and timestamp database data types, and variable-length data types which are retrieved from externally-described files.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Date, time, timestamp and variable-length database data types are ignored and not accessible in the RPG/400 program.
</dd>
<dt><b>*DATETIME</b></dt>
<dd>Date, time, and timestamp database data types are to be declared as fixed-length character fields and are accessible in the RPG/400 program.
</dd>
<dt><b>*VARCHAR</b></dt>
<dd>Variable-length database data types are to be declared as fixed-length character fields and are accessible in the RPG/400 program.
</dd>
<dt><b>*GRAPHIC</b></dt>
<dd>DBCS-graphic data types are to be declared as fixed length character fields and are accessible in the RPG/400 program.
</dd>
</dl>
<p>
<b>Note: </b>Choose both of the parameters *VARCHAR and *GRAPHIC if you want variable-length DBCS graphic data types to be declared in your program.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.SRTSEQ"></a>
<h3>Sort sequence (SRTSEQ)</h3>
<p>Specifies the sort sequence table to be used.
</p>
<p>
<b>Note: </b>To use the values coded in the SRTSEQ and LANGID parameters of the CRTRPGPGM or CRTRPTPGM command, you must specify D in the Alternate-Collating-Sequence field on the Control specification. The alternate collating sequence is retrieved from the system either at compile time or run time. If you use the D option, the alternate collating sequence affects: all character comparison operations; LOKUP and SORTA for character table and arrays; and sequence checking for character compile-time data, and pre-run-time arrays and tables. When the alternate sequence is retrieved at run time, sequence-checking for compile-time data is delayed until run time.
</p>
<dl>
<dt><b><u>*HEX</u></b></dt>
<dd>The hexadecimal values of the characters are used to determine the sort sequence. This is the default.
</dd>
<dt><b>*JOB</b></dt>
<dd>Uses the SRTSEQ value associated with the job when the RPG program is created.
</dd>
<dt><b>*JOBRUN</b></dt>
<dd>Uses the SRTSEQ value associated with the job when the RPG program is run.
</dd>
<dt><b>*LANGIDUNQ</b></dt>
<dd>Uses a unique weighted table. This special value is used in conjunction with the LANGID parameter to select the sort sequence table.
</dd>
<dt><b>*LANGIDSHR</b></dt>
<dd>Uses a shared weighted table. This special value is used in conjunction with the LANGID parameter to select the sort sequence table.
</dd>
<dt><b>sort-sequence-table-name</b></dt>
<dd>Enter the name of the sort sequence table.
</dd>
<dt><b><u>*LIBL</u></b></dt>
<dd>The compiler searches the library list to find the library where the sort sequence table is located. This is the default.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library is searched to find the sort sequence table. If you have not specified a current library, QGPL is used.
</dd>
<dt><b>library-name</b></dt>
<dd>Enter the name of the library where the sort sequence table is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.LANGID"></a>
<h3>Language identifier (LANGID)</h3>
<p>Specifies the language identifier to be used when the sort sequence is *LANGIDUNQ or *LANGIDSHR. The LANGID parameter is used in conjunction with the SRTSEQ parameter to select the sort sequence table.
</p>
<dl>
<dt><b><u>*JOBRUN</u></b></dt>
<dd>Uses the LANGID value associated with the job when the RPG program is run. This is the default.
</dd>
<dt><b>*JOB</b></dt>
<dd>Uses the LANGID value associated with the job when the RPG program is created.
</dd>
<dt><b>language-identifier</b></dt>
<dd>Enter the language identifier to be used (for example, FRA for French and DEU for German).
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.PRTFILE"></a>
<h3>Print file (PRTFILE)</h3>
<p>Specifies the name of the file where the compiler listing is to be placed and the library where the file is located.
</p>
<dl>
<dt><b><u>QSYSPRT</u></b></dt>
<dd>The compiler listing is placed in the QSYSPRT file.
</dd>
<dt><b><i>file-name</i></b></dt>
<dd>Enter the name of the file where the compiler listing is to be placed.
</dd>
<dt><b><u>*LIBL</u></b></dt>
<dd>The system searches the library list to find the library.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library will be used. If you have not specified a current library, QGPL will be used.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Enter the name of the library where the file is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.RPTOPT"></a>
<h3>Auto report options (RPTOPT)</h3>
<p>Specifies options to use when the automatic report source program is compiled.
</p>
<dl>
<dt><b><u>*NOSOURCE</u> or *NOSRC</b></dt>
<dd>The compiler does not supply a source listing.
</dd>
<dt><b>*SOURCE or *SRC</b></dt>
<dd>The compiler supplies a source listing.
</dd>
<dt><b><u>*NOFLOW</u></b></dt>
<dd>A flow of the major routines that were run is not written.
</dd>
<dt><b>*FLOW</b></dt>
<dd>A flow of the major routines that were run is written.
</dd>
<dt><b><u>*NOAST</u></b></dt>
<dd>No asterisks are generated for total written lines.
</dd>
<dt><b>*AST</b></dt>
<dd>Asterisks are generated for total written lines.
</dd>
<dt><b><u>*DATE</u></b></dt>
<dd>The date and page number are printed on the first *AUTO page heading line.
</dd>
<dt><b>*NODATE</b></dt>
<dd>The date and page number are not printed on the first *AUTO page heading line.
</dd>
<dt><b><u>*COMPILE</u></b></dt>
<dd>The RPG/400 compiler is called after the automatic report source compiles.
</dd>
<dt><b>*NOCOMPILE</b></dt>
<dd>The RPG/400 compiler is not called.
</dd>
<dt><b><u>*NOSECLVL</u></b></dt>
<dd>Message text is not printed.
</dd>
<dt><b>*SECLVL</b></dt>
<dd>Message text is printed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.OUTFILE"></a>
<h3>Auto report output file (OUTFILE)</h3>
<p>Specifies the name of the output file for the RPG source program created by the automatic report compiler.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Auto report creates a temporary file to pass the RPG source program to the compiler.
</dd>
<dt><b><i>file-name</i></b></dt>
<dd>Enter the name of the file that contains the generated RPG source program.
</dd>
<dt><b><u>*LIBL</u></b></dt>
<dd>The system searches the library list to find the library where the source file is located.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library will be used. If you have not specified a current library, QGPL will be used.
</dd>
<dt><b><i>library-name</i></b></dt>
<dd>Enter the name of the library in which the source file is stored.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.OUTMBR"></a>
<h3>Auto report output member (OUTMBR)</h3>
<p>Specifies the name of the member of the output file.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Uses the source member name as the member name.
</dd>
<dt><b><i>file-member-name</i></b></dt>
<dd>Enter the name of the member that is to receive the output from the automatic report program.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.REPLACE"></a>
<h3>Replace program (REPLACE)</h3>
<p>Specifies if a new program object will be created when there is an existing program object of the same name in the same library.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>A new program object will be created and any existing program object of the same name in the specified library will be moved to library QRPLOBJ.
</dd>
<dt><b>*NO</b></dt>
<dd>A new program object will not be created if a program object of the same name already exists in the specified library.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.TGTRLS"></a>
<h3>Target release (TGTRLS)</h3>
<p>Specifies the release of the operating system on which you intend to use the object being created. In the examples given for the *CURRENT and *PRV values, and when specifying the <u> target-release</u> value, the format VxRxMx is used to specify the release, where Vx is the version, Rx is the release, and Mx is the modification level. For example, V2R3M0 is version 2, release 3, modification level 0.
</p>
<p>Valid values for this parameter change every release.
</p>
<p>The possible values are:
</p>
<dl>
<dt><b><u>*CURRENT</u></b></dt>
<dd>The object is to be used on the release of the operating system currently running on your system. For example, if V2R3M5 is running on the system, *CURRENT means that you intend to use the object on a system with V2R3M5 installed. You can can also use the object on a system with any subsequent release of the operating system installed.
</dd>
<dt><b>*PRV</b></dt>
<dd>The object is to be used on the previous release with modification level 0 of the operating system. For example, if V2R3M5 is running on your system, *PRV means you intend to use the object on a system with V2R2M0 installed. You can also use the object on a system with any subsequent release of the operating system installed.
</dd>
<dt><b><i>target-release</i></b></dt>
<dd>Specify the release in the format VxRxMx. You can use the object on a system with the specified release or with any subsequent release of the operating system installed.
<p>Valid values depend on the current version, release, and modification level, and they change with each new release. If you specify a release-level that is earlier than the earliest release level supported by this command, an error message is sent indicating the earliest supported release.
</p>
</dd>
</dl>
<p>
<b>Note: </b>The program may be able to be restored on a release level earlier than the one you specified on the create command. Use DSPPGM to determine the earliest release the program can run.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.USRPRF"></a>
<h3>User profile (USRPRF)</h3>
<p>Specifies the user profile under which the compiled RPG program runs.
</p>
<dl>
<dt><b><u>*USER</u></b></dt>
<dd>The program runs under the user profile of the program's user.
</dd>
<dt><b>*OWNER</b></dt>
<dd>The program runs under the user profiles of both the program's owner and user. The USRPRF parameter will not be updated if the program already exists.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.AUT"></a>
<h3>Authority (AUT)</h3>
<p>Specifies what authority is granted for the program.
</p>
<dl>
<dt><b><u>*LIBCRTAUT</u></b></dt>
<dd>The default public authority for created objects is taken from the CRTAUT keyword which is associated with the target library. The value is determined at create time. If the value of the CRTAUT keyword of the library changes after the create, the new value will not affect any existing objects.
</dd>
<dt><b>*ALL</b></dt>
<dd>Complete authority for the program except for transfer of object ownership.
</dd>
<dt><b>*CHANGE</b></dt>
<dd>All operations are permitted except those dealing with the object's existence and its management.
</dd>
<dt><b>*USE</b></dt>
<dd>Authority to read or run the compiled program, but not debug or change it.
<p>
<b>Note: </b>A user must have *USE authority to a program to obtain a formatted dump of the variables of the program. To dump variables, the program must also have observable information.
</p>
<p>If you do not want some users to be able to dump the variables, then give them only *OBJOPR plus *EXECUTE authority to the program. This will allow them to call the program but not dump its variables.
</p>
<p>If you do not want any users to be able to dump the variables, then use Change Program (CHGPGM) to remove the program's observable information.
</p>
</dd>
<dt><b>*EXCLUDE</b></dt>
<dd>No authority.
</dd>
<dt><b><i>authorization-list name</i></b></dt>
<dd>The name of the authorization list which secures the object. The public authority will be *AUTL.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.PHSTRC"></a>
<h3>Phase trace (PHSTRC)</h3>
<p>Specifies if phase trace information about the compiler is to be included in the listing.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Does not provide compiler phase information.
</dd>
<dt><b>*YES</b></dt>
<dd>Provides compiler phase information.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.ITDUMP"></a>
<h3>Intermediate text dump (ITDUMP)</h3>
<p>Specifies creation of the dynamic listing of intermediate text.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Does not supply intermediate text dump.
</dd>
<dt><b><i>phase-name</i></b></dt>
<dd>Enter the last two characters of each phase name.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.SNPDUMP"></a>
<h3>Snap dump (SNPDUMP)</h3>
<p>Specifies if a listing of major data area and intermediate text is supplied.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Does not supply a snap dump.
</dd>
<dt><b><i>phase-name</i></b></dt>
<dd>Enter the last two characters of each phase name.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.CODELIST"></a>
<h3>Codelist (CODELIST)</h3>
<p>Specifies if a dynamic listing of IRP is supplied for a specific phase.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Does not supply an intermediate IRP dump.
</dd>
<dt><b>*ALL</b></dt>
<dd>Supplies an intermediate IRP dump.
</dd>
<dt><b><i>phase-name</i></b></dt>
<dd>Enter the last two characters of each phase name.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.IGNDECERR"></a>
<h3>Ignore decimal data error (IGNDECERR)</h3>
<p>Specifies if decimal data errors are ignored.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Decimal data errors are not ignored.
</dd>
<dt><b>*YES</b></dt>
<dd>Decimal data errors are ignored.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CRTRPTPGM.ALWNULL"></a>
<h3>Allow null values (ALWNULL)</h3>
<p>Specifies whether an RPG/400 program will accept null values from null-capable fields in an externally-described input file.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Specifies that the RPG/400 program will not accept null value fields.
</dd>
<dt><b>*YES</b></dt>
<dd>Specifies that an RPG/400 program will accept null value fields for an externally-described input file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTRPTPGM.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Compiling a Source Program into a Program Object </b>
</p>
<p>
<pre>
CRTRPTPGM PGM(MYLIB/XMPLE1)
SRCFILE(MYLIB/QRPGSRC) SRCMBR(XMPLE1)
OPTION(*SOURCE)
TEXT('My RPG III Auto Report Program')
</pre>
</p>
<p>This command calls the RPG/400 Auto Report compiler to create a Auto Report program named XMPLE1. The source program is in member XMPLE1 of source file QRPGSRC in library MYLIB. A compiler listing is created.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CRTRPTPGM.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>RPT9001</b></dt>
<dd>Auto Report failed.
</dd>
<dt><b>RPT0082</b></dt>
<dd>The Auto Report generation terminated because severe errors occurred.
</dd>
<dt><b>QRG9004</b></dt>
<dd>The release &amp;1 specified on the TGTRLS option is not supported.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CRTRPTPGM.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>