IBM AS/400 Customizing the Spacing, Indenting Structured Operations, Using a Compiler Listing

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 89
Image 89

 

 

 

 

Using a Compiler Listing

¹ Select

one

of

the

following time separators: *SYSVAL, *BLANK, colon (:),

comma

(,)

or

period

(.)

Anywhere a date or time field appears in the listing, these values

Customizing the Spacing

Each section of a listing usually starts on a new page; Each page o starts with product information, unless the source member contains a / tive. If it does, the product information appears on the second li appears on the first line.

You can

control

the spacing

and pagination of the compiler listing

thr

of the /EJECT and /SPACE compiler directives.

The /EJECT directive

forc

break.

The /SPACE

directive

controls line spacing within the listing. For

mation

on

these

directives

referILE RPG tofortheAS/400

Reference.

 

Indenting Structured Operations

If your source specifications contain structured operations (such a IF-ELSE-END), you may want to have these indented in the source listing. INDENT parameter lets you specify whether to show indentation, and sp character to mark the indentation. If you do not want indentation, s

INDENT(*NONE); this

is

the

default. If you do want indentation, then s

two characters

to

mark

the indentation.

For example, to specify that you want structured operations to be marked with a vertical bar () followed by a space,''). you specify

If

you

request

indentation,

then

some of

the

information which normall

the source

listing

is removed, so as to

allow

for

the indentation. Th

columns willnot

appear in

the

listing:

 

 

 

¹

Do Num

 

 

 

 

 

 

 

 

 

¹

Last Update

 

 

 

 

 

 

 

¹

PAGE/LINE

 

 

 

 

 

 

 

 

If

you

specify

indentation

and

you also

specify

a listing debug vi

will

not

appear in

the

debug view.

 

 

 

Figure 33 on page 66 shows part of source listing which was produced tation. The indentation 'mark'. is

Chapter 6. Creating a Program with the CRTBNDRPG Command65

Page 89
Image 89
IBM AS/400 manual Customizing the Spacing, Indenting Structured Operations, Using a Compiler Listing, The /SPACE