IBM AS/400 manual Statements, File, Entering, Source, Creating a Library and, Physical

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 75
Image 75
Chapter 5. Entering

Chapter 5. Entering

Source

Statements

This

chapter

provides the information you need to enter RPG source

also

briefly

describes the tools necessary to complete this step.

To enter RPG source statements into the system, use one of the foll methods:

¹ Interactively using SEU

¹Interactively using CODE/400

Initially, you may want to enter your source statements

into

a

file

QRPGLESRC. New members of the file QRPGLESRC

automatically

receive a

 

default type of RPGLE. Furthermore,

the

default

source

file

for

the

mands

that create modules and bind

them

into

program

objects

is

QRPGL

IBM

supplies a source file QRPGLESRC

in

library

QGPL.

It

has

a

recor

112

characters.

 

 

 

 

 

 

 

 

 

 

 

 

Note: You

can

use

mixed case when entering source. However, the ILE

 

RPGcompiler will convert most of

the

source

to

uppercase

when

it

 

it.

It

will

not convert literals,

array

data

or

table

data.

 

Creating a Library and

 

Source

Physical

File

 

 

 

 

 

 

 

 

 

 

Source

statements

are

entered

into a

member

of

a source

physical

f

can

enter

your

program, you

must have

a

library

and

a

source physi

To create a library, use

the

CRTLIB

command.

To

create

a

source

p

the

Create Source

 

Physical

file (CRTSRCPF) command. The recommended reco

length

of

the

file

is

112

characters.

This

record

length

takes

int

ILE

RPG structure

as

shown

in

Figure 26.

 

 

 

 

 

 

 

12

Seq#/Date

80

Code

20

Comments

Minimum Record Length

(92 characters)

Recommended Record Length

(112 characters)

Figure 26. ILE RPG Record Length Breakdown

Since the system default for a source physical file is 92 characte explicitly specify a minimum record length of 112. If you specify 92 characters, the program may not compile since you may be truncat code.

For more information about creating

libraries and source physical file

ADTS for AS/400: Source Entry Utilitymanual

and theADTS/400: Programming

Development Manager manual.

 

Copyright IBM Corp. 1994, 1999

51

Page 75
Image 75
IBM AS/400 manual Statements, File, Entering, Source, Creating a Library and, Physical