IBM AS/400 manual Using the Source Entry Utility, Using SEU

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 76
Image 76
Using SEU

Using SEU

Using the Source Entry Utility

(SEU)

 

 

 

 

 

 

 

You

can

use

the

Source Entry

Utility (SEU)

to enter your source stat

also provides prompting for the different specification templates as we

checking.

To start

SEU, use the STRSEU (Start

Source

Entry

Utility)

comma

other ways to start and use

SEU,ADTS referfor AS/400:to theSource

Entry Utility

 

manual.

 

 

 

 

 

 

 

 

 

 

If

you

name

your

source

file

QRPGLESRC,

SEU

automatically

sets the

sour

to RPGLE

when it starts the editing session

for a new member. Otherwis

have

to

specify

RPGLE when

you create

the

member.

 

 

 

If you need prompting after you type STRSEU, press F4. The STRSEU dis appears, lists the parameters, and supplies the default values. If y eter values before you request prompting, the display appears with t filled in.

In the following example you enter source statements for a program whi employee information from a master file. This example shows you how to:

¹Create a library

¹ Create a source physical file

¹ Start an SEU editing session

¹Enter source statements.

1. To create a library called MYLIB, type:

CRTLIB LIB(MYLIB)

The CRTLIB command creates a library called MYLIB.

2. To create a source physical file called QRPGLESRC type:

CRTSRCPF FILE(MYLIB/QRPGLESRC) RCDLEN(112)

TEXT('Source physical file for ILE RPG programs')

The CRTSRCPF command creates a source physical file QRPGLESRC in library MYLIB.

3. To start an editing session and create source member EMPRPT type:

STRSEU SRCFILE(MYLIB/QRPGLESRC)

SRCMBR(EMPRPT)

TYPE(RPGLE) OPTION(2)

Entering OPTION(2) indicates that you

want

to

start

a

session

for

a

member. The STRSEU command creates a

new

member EMPRPT

in

file

 

 

QRPGLESRC in

library MYLIB and

starts

an

edit

session.

 

 

 

 

The

SEU Edit display appears as shown

in

Figure 27

on

page 53.

Note

the

screen is automatically

shifted

so

that

position

6

is (for

spe

the

left

edge.

 

 

 

 

 

 

 

 

 

 

52 ILE RPG for AS/400 Programmer's Guide

Page 76
Image 76
IBM AS/400 manual Using the Source Entry Utility, Using SEU