Example: short listing
The parenthetical numbers shown in the listing below correspond to numbered explanations that follow the listing. For illustrative purposes, some errors that cause diagnostic messages were deliberately introduced.
Invocation parameters: (1)
OPTFILE
PROCESS(CBL) statements: (2)
CBL NODECK
CBL NOADV,NODYN,NONAME,NONUMBER,QUOTE,SEQ,DUMP
CBL NOSOURCE, NOXREF, NOVBREF, NOMAP, NOOFFSET, NOLIST
Options from SYSOPTF: (3)
C,NODU,FLAG(I),X,MAP,NOLIST,RENT,OPT(1),SSR
TEST TRUNC(OPT)
Options in effect: (4)
NOADATA
NOADV
AFP(VOLATILE)
QUOTE
ARCH(8)
ARITH(COMPAT)
NOAWO
NOBLOCK0
BUFSIZE(4096)
NOCICS
CODEPAGE(1140)
COMPILE
NOCOPYRIGHT
NOCURRENCY
DATA(31)
DBCS
NODECK
NODIAGTRUNC
DISPSIGN(COMPAT)
NODLL
DUMP
NODYNAM
NOEXIT
NOEXPORTALL
NOFASTSRT
FLAG(I)
NOFLAGSTD
HGPR(PRESERVE)
INTDATE(ANSI)
LANGUAGE(EN)
LINECOUNT(60)
NOLIST
NOMAP
MAXPCF(100000)
NOMDECK
NONAME
NSYMBOL(NATIONAL)
NONUMBER
NUMPROC(NOPFD)
OBJECT
NOOFFSET
OPTIMIZE(1)
OUTDD(SYSOUT)
PGMNAME(COMPAT)
QUALIFY(COMPAT)
RENT
RMODE(AUTO)
NORULES
NOSERVICE
SEQUENCE
NOSOURCE
SPACE(1)
NOSQL
SQLCCSID
NOSQLIMS
SSRANGE(NOZLEN)
NOSTGOPT
SUPPRESS
NOTERM
TEST(NOEJPD,SOURCE)
NOTHREAD
TRUNC(OPT)
NOVBREF
VLR(COMPAT)
VSAMOPENFS(COMPAT)
NOWORD
XMLPARSE(XMLSS)
NOXREF
NOZONECHECK
ZONEDATA(PFD)
ZWB
LineID Message code Message text (5)
IGYSC3002-I A severe error was found in the program. The "OPTIMIZE" and the "STGOPT" compiler
options were cancelled.
160 IGYDS1089-S "ASSIGNN" was invalid. Scanning was resumed at the next area "A" item, level-number,
or the start of the next clause.
192 IGYDS1050-E File "LOCATION-FILE" contained no data record descriptions. The file definition was
discarded.
192 IGYGR1207-S The "ASSIGN" clause was missing or invalid in the "SELECT" entry for file "LOCATION-FILE".
The file definition was discarded.
888 IGYPS2052-S An error was found in the definition of file "LOCATION-FILE". The reference to this file
was discarded.
Same message on line: 979
1000 IGYPS2121-S "WS-DATE" was not defined as a data-name. The statement was discarded.
Same message on line: 1001
1004 IGYPS2053-S An error was found in the definition of file "LOCATION-FILE". This input/output statement
was discarded.
Same message on line: 1016
1015 IGYPS2121-S "LOC-CODE" was not defined as a data-name. The statement was discarded.
1212 IGYPS2121-S "WS-NUMERIC-DATE" was not defined as a data-name. The statement was discarded.
1655 IGYPG3113-W Truncation of high-order digit positions may occur due to precision of intermediate results
exceeding 30 digits.
Messages Total Informational Warning Error Severe Terminating (6)
Printed: 13 1 1 1 10
* Statistics for COBOL program IGYTCARA: (7)
* Source records = 1755
* Data Division statements = 295
* Procedure Division statements = 479
* Generated COBOL statements = 0
* Program complexity factor = 486
End of compilation 1, program IGYTCARA, highest severity 12. (8)
Return code 12
- (1)
- Message
about options passed to the compiler at compiler invocation. This
message does not appear if no options were passed.
OPTFILE
- Requests options from a SYSOPTF data set.
- (2)
- Options coded in the
PROCESS
(orCBL
) statement.NOOFFSET
- Suppresses a condensed listing of the
PROCEDURE DIVISION
. NOMAP
- Suppresses a map report of the items defined in the
DATA DIVISION
.
- (3)
- Options obtained from the SYSOPTF data set (because
the
OPTFILE
compiler option was specified).NOLIST
- Suppresses an assembler-language expansion of the source code.
TEST
- The program was compiled for use with debugging and
problem determination tools (such as z/OS® Debugger and Fault Analyzer) and
to get local variables listed in
CEEDUMP
.
- (4)
- Status of options at the start of this compilation.
- (5)
- Program diagnostics. The first message refers you to any library phase diagnostics. Diagnostics for the library phase are presented at the beginning of the listing.
- (6)
- Count of diagnostic messages in this program, grouped by severity level.
- (7)
- Program statistics for the program IGYTCARA.
- (8)
- Program statistics for the compilation unit. When you perform a batch compilation, the return code is the highest message severity level for the entire compilation.