IBM AS/400 manual Correcting Run-time Errors, Using Additional-Diagnostic Messages

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 92
Image 92

Using a Compiler Listing

Using Additional-Diagnostic Messages

 

The

Additional

Diagnostic

Messages section

identifies errors

which

arise

 

or

more

lines

of

code are viewed collectively. These messages are no

 

within the

code

where

the

problem

is; in general, the compiler

does

n

 

time

of

checking

that portion of the source that a problem exists. Ho

 

possible,

 

the

message

line

includes

either the listing Line Number

and

 

sequence

number,

or

the Statement

Number

of a source line

which

is

r

 

message.

 

 

 

 

 

 

 

 

 

 

 

 

Browsing a Compiler Listing Using SEU

The SEU Split/Browse session (F15) allows you to browse a compiler listing output queue. You can review the results of a previous compilation whi the required changes to your source code.

While browsing the compiler listing, you can

scan

for

errors

and

correc

source

statements

that

have

errors.

To

scanF *ERRfor

onerrors,the SEUtype

 

command

line

of

the browse

session.

The

line

with

the

first

(or

next)

lighted,

and the first-level

text

of

the same message appears at the

screen.

You can see the second-level

text by placing your cursor on

at

the

bottom

and

then

pressing

F1

(Help).

 

 

 

 

 

When

possible,

the

error messages

in

the listing identify the SEU seq

of

the

line

in

error.

The

sequence

number

is found

just before

the

For complete information on browsing a compilerADTSlisting,for AS/400:see

Source Entry Utility.

Correcting Run-time Errors

The source section of the listing is also useful for correcting run-tim run-time error messages identify a statement number where the error in occurred.

If

OPTION(*NOSRCSTMT)

 

is

specified, the Line Numblerftsideontheof

the

 

 

 

 

compiler listing corresponds to the statement number in the

run-time

erro

 

message.

The

source

ID

number

and

the

SEU

sequencerightnumberside on

the

 

 

of the compiler listing identify the source member and record. You c

 

together,

especially

if

you

are editing

the

source

using

SEU,

to

de

 

needs

to

be

examined.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If

OPTION(*SRCSTMT)

is

specified, the Statement Numberrightsideontheof

the

 

 

compiler

listing corresponds

to

the

statement

number in

 

the

run-time

err

message.

If

the

statement

is from the

main

source

member,

this

is

t

statement

on lefttheside

of

the

compiler

listing,

and

is

also

the

same

as

sequence

number.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If

you

have

a

/COPY

member,

you

can

find

the

source

ID

number

of

 

in the /COPY Member table at the

end

of the

listing.

For

an example

o

 

Member

table,

see

“/COPY

Member

Table”

on

page 432.

 

 

 

 

 

 

 

68 ILE RPG for AS/400 Programmer's Guide

Page 92
Image 92
IBM AS/400 manual Correcting Run-time Errors, Using Additional-Diagnostic Messages, Browsing a Compiler Listing Using SEU