IBM AS/400 with, Using Program-Described WORKSTN Files, Using a Program-Described, Format

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 363
Image 363

Using Program-Described WORKSTN Files

¹ What data is sent

¹What ICF functions to perform.

If

a format

name is used, input and output

specifications

must

be

the

input

and

output

records.

 

 

 

 

 

 

 

You can specify PASS(*NOIND) on a file description specification for a

described WORKSTN file. The PASS(*NOIND) keyword

indicates

that

the

RPG

program will not additionally pass indicators to

data

management

on

outp

receive

them

on input. It is your responsibility

to pass

indicators

as

fields (in the form *INxx, *IN, or *IN(x)

)

in

the

input

or

outp

be

specified

in the sequence required by

the

data

description s

You

can

use

the DDS

listing to determine this

sequence.

 

 

 

 

Using a Program-Described

WORKSTN

File

with

a

Format

Name

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The

following

specifications

apply

to

using

a

format

name

 

for

a

progr

WORKSTN

file.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Output Specifications

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

On

the

output

specifications, you

must

specify

the

WORKSTN

file name

7 through 16. The format name, which is the name of the

DDS

record

specified as a literal or named

constant

in

positions

53

through

80

o

ceeding field description line. K1 through K10 must be specified (r

positions 47 through 51 on

the

line

containing

the

format

 

name.

 

The

 

K

entry

as a

length

rather

than

an

end

position,

and

the

 

number

indica

of the format name. For example,

if the format name is

CUSPMT,

the

e

tions

47

through

51

is

K6.

(Leading

zeros

following

 

the

 

K

are

allowed

name cannot be conditioned (indicators

in

positions

21

through

 

29

are

Output

fields

must

be

located

in

the

output

record

in

 

the

same

 

ord

the DDS; however, the field names

do

not

have

to

 

be

 

the

same.

The

entries

for

the

fields

refer

to

the

end position

in

the

output

 

re

RPG program to data management, and not

to

the

location

of

the

field

screen.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

To pass indicators on output, do one of the following:

¹ Specify the

keyword

INDARA in

the

DDS for the WORKSTN file. Do no

the PASS(*NOIND)

keyword

on the

file

description specification and d

specify the indicators on the output specifications. The program separate indicator area to pass the indicators.

¹Specify the PASS(*NOIND) keyword on the file description specificati

Specify

the

indicators in

the output specifications as fields

in

The

indicator

fields

must

precede other fields in the output

re

must

appear

in

the

order

specified by the WORKSTN file DDS.

You

mine

this

order

from

the

DDS listing.

 

Chapter 18. Using WORKSTN Files339

Page 363
Image 363
IBM AS/400 manual with, Using Program-Described WORKSTN Files, Using a Program-Described, Format, Output Specifications