Using a

Compiler Listing

Lists

the start

and

end

positions

along with the literal text or

this

to check

for

errors

in your

output

specifications.

¹Compile-time data

ALTSEQ

and FTRANS

records and tables are

listed. NLSS information and

tables are listed. Tables and arrays

are explicitly identified.

that

you have specified the compile-time data in the correct or

have

specified the correct values for the SRTSEQ and LANGID parame

the

compiler.

 

 

Using In-Line Diagnostic Messages

There are two types of in-line diagnostic messages: finger and non-fin messages point out exactly where the error occurred. Figure 34 show of finger in-line diagnostic messages.

Line

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

Source Specifications ----------------------------

 

 

 

><----

Comments ----

> Do

Page

Change

Src

Seq

 

 

 

 

Number

....1....

+....2....+....3....

+

....4

....+

....5....

+....6....

+....

7

....+....

8....

+....

9....+...

10 Num Line

Date

Id

Number

 

 

 

 

63

C

SETOFF

 

 

 

 

 

 

 

_12___

 

 

 

 

 

 

 

 

003100

 

 

 

 

======>

 

 

 

 

 

 

 

 

 

aabb

 

 

 

 

 

 

 

 

 

 

 

 

 

======>

 

 

 

 

 

 

 

 

 

cccccc

 

 

 

 

 

 

 

 

 

 

 

 

 

*RNF5051 20 a

003100 Resulting-Indicator entry is not valid; defaults to blank￿s.

 

 

 

 

 

 

 

 

 

 

 

*RNF5051 20 b

003100 Resulting-Indicator entry is not valid; defaults to blank￿s.

 

 

 

 

 

 

 

 

 

 

 

*RNF5053 30 c

003100 Resulting-Indicators entry is blank for specified

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

34.

Sample Finger In-Line Diagnostic Messages

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

In

this

example,

an

indicator

has

been

incorrectly

placed

 

in

position

 

 

instead of 71 - 72

or 73 - 74. The three fingers

'aa',

'bb',

and

 

 

parts of the line where there are errors. The actual columns are

 

 

variables

which

are

further

explained

by the messages. In this ca

 

 

RNF5051

indicates

that

the fields marked by 'aa' and 'bb' do not cont

 

 

indicator. Since there is no valid indicator

the

compiler

assumes

tha

 

 

blank.

However, since

the

SETOFF

operation

requires

an

indicator,

anothe

 

 

arises,

as

pointed

out

by the

field

'cccccc'

 

and

message RNF5053.

Errors are listed in the order in which they are found. As a gene focus on correcting the first few severity 30 and 40 errors, since cause of other errors.

Non-finger in-line diagnostic messages also indicate errors. However, th issued immediately following the line in error. Figure 35 shows an exa non-finger in-line diagnostic messages.

Line

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

Source Specifications ----------------------------

 

 

 

><----

Comments

----

> Do

Page

Change

Src

Seq

 

 

 

 

Number

....1....

+....2....+....

3....

+....4

....+....

5....+....

6....

+

....7....

+....

8....

+....

9....+

...10 Num Line

Date

Id

Number

 

 

 

1

D FLD1

S

 

+5

LIKE(FLD2)

 

 

 

 

 

 

 

 

 

 

 

 

 

000100

 

 

 

2

D FLD2

S

 

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

000200

 

 

 

*RNF3479 20

1 000100 A length adjustment is not allowed for a field of the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

specified data type.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure

35.

Sample Non-Finger In-Line Diagnostic Messages

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

In

 

this

example,

FLD1

 

is defined

like

FLD2

with

a length 5 bytes gr

 

 

FLD2

is defined as a date,

which

makes the length adjustment in the

 

 

FLD1

invalid.

Message

RNF3479

is

 

issued

pointing

at

listing

line

1.

Note

 

 

SEU

sequence

number (000100)

is

also

given,

to

aid

you

in

finding

the

 

 

in

error

more

quickly.

(The

SEU

sequence

number

can

also

be

found a

1).

Chapter 6. Creating a Program with the CRTBNDRPG Command67

Page 91
Image 91
IBM AS/400 manual Using In-Line Diagnostic Messages, FLD2, FLD1, Seu

AS/400 specifications

The IBM AS/400, now known as the IBM iSeries, is a midrange computer system that has been a cornerstone of enterprise computing since its introduction in 1988. Designed to provide a robust platform for business applications, the AS/400 is celebrated for its reliability, scalability, and integrated database capabilities.

One of the key features of the AS/400 is its Integrated Operating Environment, which blends hardware and software resources seamlessly. This integration allows businesses to execute diverse workloads, ranging from traditional applications to modern web-based services, all on a single platform. The operating system, OS/400 (now IBM i), offers a rich set of APIs and tools for developers, simplifying application development and management.

Another standout characteristic of the AS/400 is its built-in database, DB2 for i. This powerful relational database management system allows for efficient data handling and provides advanced features such as support for SQL, XML, and JSON, making it easier for businesses to manage their data and integrate it with other systems. The database's tight integration with the operating system enables high performance and security.

In terms of scalability, the AS/400 can accommodate small businesses as well as large enterprises, with the ability to support hundreds of users simultaneously. Its architecture allows for easy upgrades in hardware, meaning that organizations can scale their systems without replacing the entire infrastructure.

Security is another critical attribute of the AS/400. With a sophisticated security model, it offers built-in user authentication, access control, encryption, and auditing capabilities to protect data and applications from unauthorized access.

The AS/400 also supports multiple programming languages, including RPG, COBOL, Java, and PHP, giving organizations the flexibility to choose the development tools that best fit their needs. This diversity helps maintain legacy applications while also developing new ones that leverage modern technologies.

Moreover, the platform supports both traditional green-screen interfaces and modern graphical user interfaces, allowing organizations to transition smoothly into contemporary user experience paradigms.

Overall, the IBM AS/400 stands out as a resilient, flexible, and secure computing platform that enables organizations to effectively manage their business operations, streamline processes, and adapt to changing market demands. Its unique combination of integrated features and capabilities ensures that it remains relevant in today's fast-paced technology landscape.