IBM AS/400 manual Compiler Listings, Sample Section of the Listing with OPTION*NOSRCSTMT

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 450
Image 450

Compiler Listings

 

Source

Section

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The

 

source

section

shows records that comprise the ILE

RPG

source

sp

 

 

 

 

 

tions. The root source member

 

records are always shown. If OPTION(*EXP

 

 

 

 

 

also specified, then the source section shows records generated from

 

 

 

 

 

 

described files, and marks them with a

'='

in

the

column

beside

the

 

 

 

 

 

 

These

records

are

 

not

shown

if

*NOEXPDDS is

specified.

If

OPTION(*SHOWCP

 

 

 

 

 

is

specified,

 

then

 

it also shows the records from /COPY members speci

 

 

 

 

 

source, and marks them with a

'+' in the column beside the line number

 

 

 

 

 

records

are

not

shown

if

*NOSHOWCPY

is

specified.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The

 

source

section

also

shows

 

the conditional compilation process. All lin

 

 

 

 

 

/IF,

 

/ELSEIF,

 

/ELSE

and

 

/ENDIF

directives

and

source

lines

selected

by

th

 

 

 

 

 

groups

are

printed

and given a listing line number. If OPTION(*SHOWSKP) is

 

 

 

 

 

ified,

it

shows

all

 

statements

that

have

been

excluded

by

the

/IF,

 

 

 

 

 

 

/ELSE

 

directives,

and

 

marks

them

with

a

'-------

'

in

the

 

column

beside

the

 

 

 

 

 

 

ment.

 

Line

numbers

in

 

the listing are not incremented for excluded lines

 

 

 

 

 

skipped

statements

are

printed

exactly as specified, but are not int

 

 

 

 

 

way.

 

For

example,

an

excluded

statement

with

an

/EJECT

directive

does

 

 

 

 

 

 

a page break. Similarly, /SPACE, /TITLE, /COPY and

 

/EOF

compiler directives

a

 

 

 

 

 

ignored

if

they

are

encountered

 

in

excluded

 

lines.

These

statements

a

 

 

 

 

 

if

the

default

OPTION(*NOSHOWSKP)

is

specified;

 

instead

a

message

is

pr

 

 

 

 

 

giving

the

 

number

of

 

lines

excluded.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The

 

source

section

identifies

any

syntax

errors

 

in

 

the

source,

and

i

 

 

 

 

 

field

table,

 

when

appropriate.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If

OPTION(*NOSRCSTMT)

is

specified,

 

line

numbers

 

are

printed

sequentially

 

 

 

 

 

the

 

left

 

side

of

 

the

listing

to reflect the compiled source line num

 

 

 

 

and

 

SEU

sequence

numbers

are

printed

on

the

 

right

 

side

of

the

listi

 

 

 

 

the

 

source

members

 

and

records

 

respectively.

For

example,

Figure 215

 

 

 

 

 

section

of

 

the

listing with

a

/COPY

 

statement

 

in line 35. In the root

 

 

 

 

the

 

next

line

 

is

a

DOWEQ

operation.

 

In

the

 

listing,

however,

the DOWE

 

 

 

 

is on line 39. The

 

three

intervening

 

lines

shown

in

the listing

are

fro

 

 

 

 

source

member.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Line

<---------------------

Source Specifications

----------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

><----

Comments

----

> Src Seq

 

 

 

 

 

 

 

Number ....

1....+....

2....

+<-------- 26 - 35 -------->....

4....

+....

5....

+....

6....

+....

7....

+....

8....

+....

9....

+...

10 Id

Number

 

 

 

 

 

 

 

 

34 C

 

 

MOVE

 

 

 

 

 

 

 

'123'

 

 

BI_FLD1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

001500

 

 

 

 

 

 

 

 

35 C/COPY MYCPY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

971104

 

001600

 

 

 

 

 

 

 

 

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

* RPG member name

. . . . . :

MYCPY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

* External name .

. . . .

.

:

RPGGUIDE/QRPGLESRC(MYCPY)

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

* Last change . .

. . . .

.

:

98/07/24

16:20:04

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

* Text 'description' . . .

.

: Text on copy member

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

36+C

Blue(1)

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5000100

 

 

 

 

 

 

 

 

37+C

Green(4)

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5000200

 

 

 

 

 

 

 

 

38+C

Red(2)

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5000300

 

 

 

 

 

 

 

 

39 C

*in20

 

doweq

 

 

 

 

 

 

 

*OFF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

001700

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

215.

Sample Section of the Listing with OPTION(*NOSRCSTMT)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If

OPTION(*SRCSTMT)

is

 

specified, sequence numbers are printed on the l

 

 

 

 

of

 

the

listing

to

reflect

the

SEU

sequence

 

numbers.

Statement

numbers

 

 

 

 

 

on

the

right

side

 

of the listing. The statement number information is

 

 

 

 

 

source

ID

 

and

SEU

 

sequence

 

number information. For example, Figure 216

 

 

 

 

 

page 427

shows

a section

of

 

the

listing

that

has

a

/COPY

statement

wi

 

 

 

 

number

001600.

 

The

next

line

in

the root

source

member

is

the

same

as

426 ILE RPG for AS/400 Programmer's Guide

Page 450
Image 450
IBM AS/400 manual Compiler Listings, Sample Section of the Listing with OPTION*NOSRCSTMT