Command definition source listing

When you create a command, a source list is produced.

The following shows a sample source list. The numbers refer to descriptions following the list.

 5722SS1 V5R3M0  0312311                  Command Definition        DSTPRODLB/ORDENTRY   SYSNAME  11/20/98 14:53:322Page 13
 
 Command name  . . . . . . . . . . . . . . . . :   ORDENTRY
   Library . . . . . . . . . . . . . . . . . . :     DSTPRODLB
 Command processing program  . . . . . . . . . :   ORDENT     4
   Library . . . . . . . . . . . . . . . . . . :     *LIBL
 Source file . . . . . . . . . . . . . . . . . :   QCMDSRC
   Library . . . . . . . . . . . . . . . . . . :     QGPL
 Source file member  . . . . . . . . . . . . . :   ORDENTRY     11/20/98  14:54:32
 Validity checker program  . . . . . . . . . . :   *NONE
 Mode in which valid . . . . . . . . . . . . . :   *PROD
                                                   *DEBUG
                                                   *SERVICE
 Environment allowed . . . . . . . . . . . . . :   *IREXX
                                                   *BREXX
                                                   *BPGM
                                                   *IPGM
                                                   *EXEC
                                                   *INTERACT
                                                   *BATCH
                                                   *BMOD
                                                   *IMOD
 Allow limited user  . . . . . . . . . . . . . :   *NO
 Max positional parameters . . . . . . . . . . :   *NOMAX
 Prompt file . . . . . . . . . . . . . . . . . :   *NONE
 Message file  . . . . . . . . . . . . . . . . :   QCPFMSG
   Library . . . . . . . . . . . . . . . . . . :     *LIBL
 Authority . . . . . . . . . . . . . . . . . . :   *LIBCRTAUT
 Replace command . . . . . . . . . . . . . . . :   *YES
 Enable graphical user interface . . . . . . . :   *NO 
 Threadsafe  . . . . . . . . . . . . . . . . . :   *NO 
 Multithreaded job action  . . . . . . . . . . :   *SYSVAL
 Text  . . . . . . . . . . . . . . . . . . . . :   Calls order entry application
 Help book name  . . . . . . . . . . . . . . . :   *NONE
 Help bookshelf. . . . . . . . . . . . . . . . :   *NONE
 Help panel group  . . . . . . . . . . . . . . :   *NONE
 Help identifier . . . . . . . . . . . . . . . :   *NONE
 Help search index . . . . . . . . . . . . . . :   *NONE
 Current library . . . . . . . . . . . . . . . :   *NOCHG
 Product library . . . . . . . . . . . . . . . :   *NOCHG
 Prompt override program . . . . . . . . . . . :   *NONE
 Compiler  . . . . . . . . . . . . . . . . . . :   IBM AS/400 Command Definition Compiler 5
 
                                     Command Definition Source
 6
 SEQNBR  *...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8 ...+... 9 ...+.  DATE  8
    100-               CMD        PROMPT('Order entry command')                                            11/20/98
7
    200-               PARM       KWD(OETYPE) TYPE(*CHAR) RSTD(*YES) +                                     11/20/98
    300                             VALUES(DAILY WEEKLY MONTHLY) MIN(1) +                                  11/20/98
    400                             PROMPT('Type of order entry:')                                         11/20/98
                                         * * * * *   E N D   O F   S  O U R C E   * * * * *
 
 5769SS1 V4R4M0  990521                 Command Definition                DSTPRODLB/ORDENTRY     11/20/98 14:54:32         Page    2
                                          Cross Reference
 
 Defined Keywords 9
 Keyword              Number          Defined      References
 OETYPE                 001               200
                               * * * * *   E N D   O F   C R O S S   R E F E R E N C E   * * * * *
 
 5769SS1 V4R4M0  990521                 Command Definition                DSTPRODLB/ORDENTRY     11/20/98 14:54:32         Page    3
                                          Final Messages
 
 Message               Sequence
 ID                     Number          Sev        Text  10
 
                                          Message Summary
 Total         Info        Error
     0             0           0   11
* CPC0202                                00        Command ORDENTRY created in library DSTPRODLB. 12
                                   * * * * *   E N D   O F   C O M P I L A T I O N   * * * * *

Title:

1
The program number, version, release, modification level, and date of i5/OS™.
2
The date and time of this run.
3
The page number in the list.

Prologue

4
The parameter values specified (or defaults if not specified) on the CRTCMD command. If the source is not in a database file, the member name, date, and time are omitted.
5
The name of the create command definition compiler.

Source:

6
The sequence number of lines (records) in the source file. A dash following a sequence number indicates that a source statement begins at that sequence number. The absence of a dash indicates that a statement is the continuation of the previous statement. For example, a PARM source statement starts at sequence number 200 and continues at sequence numbers 300 and 400. (Note the continuation character of + on the PARM statement at sequence number 200 and 300.)

Comment source statements are handled like any other source statement and have sequence numbers.

7
The source statements.
8
The last date the source statement was changed or added. If the statement has not been changed or added, no date is shown. If the source is not in a database file, the date is omitted.

If an error is found during processing of the command definition statements and can be traced to a specific source statement, the error message is printed immediately following the source statement. An asterisk (*) indicates that the line contains an error message. The line contains the message identifier, severity, and the text of the message.

Cross-references:

9
The keyword table is a cross-reference list of the keywords validly defined in the command definition. The table lists the keyword, the position of the keyword in the command, the sequence number of the statement where the keyword is defined, and the sequence numbers of statements that refer to the keyword.

If valid labels are defined in the command definition, a cross-reference list of the labels (label table) is provided. The table lists the label, the sequence number of the statement where the label is defined, and the sequence numbers of statements that refer to the label.

Messages:

10
A list of the general error messages not listed in the source section that were encountered during processing of the command definition statements, if any. For each message, this section contains the message identifier, the sequence number of where the error occurred, the severity, and the message.

Message summary:

11
A summary of the number of messages issued during processing of the command definition statements. The total number is given along with totals by severity.
12
A completion message is printed following the message summary.
Related concepts
Command errors when processing command definition statements