IBM AS/400 manual Using a Compiler Listing, Obtaining a Compiler

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 87
Image 87
Using a Compiler Listing

Using a Compiler Listing

Using a Compiler Listing

This section discusses how to obtain a listing and how to use it to

¹ Fix compilation errors

¹ Fix run-time errors

¹Provide documentation for maintenance purposes.

See Appendix D, “Compiler Listings” on page 423 for more information on ferent parts of the listing and for a complete sample listing.

Obtaining a Compiler

Listing

 

 

 

 

To

obtain

a compiler listing specify OUTPUT(*PRINT) on

either the CRTBN

command or the CRTRPGMOD command. (This is their default setting.) The

ification OUTPUT(*NONE) will suppress a listing.

 

Specifying

OUTPUT(*PRINT)

results in a compiler listing

minwhimallych consists

of

the following

sections:

 

¹

Prologue

(command option summary)

 

¹

Source

Listing,

which

includes:

 

In-Line diagnostic messages

Match-field table (if using the RPG cycle with match fields)

¹

Additional diagnostic messages

¹

Field Positions in Output Buffer

¹

/COPY

Member

Table

¹

Compile

Time

Data which includes:

Alternate Collating Sequence records and table or NLSS information a table

– File translation records

Array records

Table records

¹Message summary

¹Final summary

¹

Code generation

report

(appears

only if there are errors)

¹

Binding report

(applies

only to

CRTBNDRPG; appears only if there ar

The following additional information is included in a compiler listing if priate value is specified on the OPTION parameter of either create

*EXPDDS

Specifications of externally-described files (appear in sourc listing)

*SHOWCPY

Source records of /COPY members (appear in source section o

Chapter 6. Creating a Program with the CRTBNDRPG Command63

Page 87
Image 87
IBM AS/400 manual Using a Compiler Listing, Obtaining a Compiler