IBM AS/400 manual Key Field Information, Cross-Reference Table, Compiler Listings

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 458
Image 458
Key Field Information

Compiler Listings

Key Field Information

The Key Field Information section shows information about key fields fo keyed file. It also shows information on any keys that are common to records (that is, common keys). Figure 223 shows an example.

 

 

K e y

F i e l d

I n f o r m a t i o n

 

 

File

Internal

External

 

 

 

 

 

Record

field name

field name

Attributes

 

 

2 KEYL6

 

 

 

 

 

 

 

 

 

Common Keys:

 

 

 

 

 

 

 

 

 

 

 

 

 

DATE

*ISO- 10

 

 

 

 

 

 

 

 

CHAR

3

 

 

 

REC1

 

 

 

 

 

 

 

 

 

 

FLD12

 

 

DATE

*ISO- 10

 

 

 

 

FLD13

 

 

CHAR

3

 

 

 

 

FLD15

 

 

CHAR

5

 

 

 

 

FLDC

 

 

UCS2

5

13488

 

 

 

FLDCV

 

 

VUC2

5

13488

 

 

 

FLDG

 

 

GRPH

5

835

 

 

REC2

 

 

 

 

 

 

 

 

 

 

FLD22

 

 

DATE

*ISO- 10

 

 

 

 

FLD23

 

 

CHAR

3

 

 

* * * * *

E N D

O F

K E Y

F I E L D

I N F O R M A T I O N

* * * * *

Figure 223. Sample Key Field Information

Cross-Reference Table

The Cross-Reference table contains at least three lists:

¹files and records

¹global fields

¹indicators

In addition, it contains the local fields that are used by each sub table to check where files, fields and indicators are used within th module/program.

 

Note

that

the informational

 

message

RNF7031,

which

is

issued when

an

ide

 

not

referenced,

will only

appear

in

the

cross-reference section

of

the

 

the message summary. It does not appear

in

the

source

section

of

th

 

Names longer than 122 characters, will

appear in the cross-reference s

 

listing

split

across

multiple

lines.

The

entire

name

will

be

printed

with

 

'...' at the end of the lines. If

the

final

portion

of

the

name

is

 

ters, the attributes and line numbers

will be listed starting on the f

 

Figure 224

on

page 435

shows an

example

for

the

module

TRANSRPT,

which

h

 

two

subprocedures.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

In

this example,

the

Cross-Reference

table shows the line numbers for

ence.

If

you

specify

OPTION(*SRCSTMT)

instead

of

OPTION(*NOSRCSTMT),

the

 

statement

numbers will be displayed for

 

each

reference

and the

cros

listing

can

extend

beyond

the first

80

columns

of

the

listing.

 

 

 

434 ILE RPG for AS/400 Programmer's Guide

Page 458
Image 458
IBM AS/400 manual Cross-Reference Table, Compiler Listings, Sample Key Field Information