IBM AS/400 manual Using Program-Described WORKSTN Files

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 362
Image 362
Using Program-Described WORKSTN Files

Using Program-Described WORKSTN Files

*.. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ..*

 

AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions++++++++++++++++++++*

 

A

 

R FILCTL

 

SFLCTL(SUBFIL)

 

A N70

 

 

SFLCLR

 

A

70

 

 

SFLDSPCTL

 

A

71

 

 

SFLDSP

 

A

 

 

 

SFLSIZ(15)

 

A

 

 

 

SFLPAG(15)

 

A

 

 

 

TEXT('Subfile Control Record')

 

A

 

 

 

OVERLAY

 

A

71

 

 

ROLLUP(97 'Continue Search')

 

A

 

 

 

CA01(98 'End of Program')

 

A

 

 

 

HELP(99 'Help Key')

 

A

 

 

1

2'Customer Name Search'

 

A

 

 

3

2'Search Code'

 

A

 

SRHCOD R

I 3 14PUTRETAIN

 

A

 

 

5

2'Number'

 

A

 

 

5

10'Name'

 

A

 

 

5

32'Address'

 

A

 

 

5

54'City'

 

A

 

 

5

76'State'

 

A*

 

 

 

 

 

 

 

 

Figure

168. Data Description Specifications for a Subfile Control-Record Format

The subfile control-record format defines the attributes of the subfi input field, constants, and function keys. The keywords you can use ind following:

¹

SFLCTL

names the

associated

subfile

(SUBFIL).

¹

SFLCLR

indicates

when the

subfile

should be cleared (when indicator

¹SFLDSPCTL indicates when to display the subfile control record (when i

 

cator 70 is on).

 

 

 

 

 

 

 

 

 

¹

SFLDSP

indicates

when

to display the

subfile

(when

indicator

71

is o

¹

SFLSIZ

indicates

the

total

number

of

records

to

be included

in

the

¹

SFLPAG

indicates

the

total

number

of

records

in

a

page (15).

 

 

¹ROLLUP indicates that indicator 97 is set on in the program when th

presses the Roll Up key.

¹HELP allows the user to press the Help key for a displayed message

describes the valid function keys.

¹ PUTRETAIN allows the value

that is

entered in

the

SRHCOD field to b

the display.

 

 

 

 

 

 

 

In

addition

to

the

control

information, the

subfile control-record format

the

constants

to

be

used

as column

headings

for

the

subfile record

Using Program-Described WORKSTN Files

You can use a program-described WORKSTN file with or without a format specified on the output specifications. The format name, if specified name of a data description specifications record format. This record describes:

¹ How the data stream sent from an RPG program is formatted on the

338 ILE RPG for AS/400 Programmer's Guide

Page 362
Image 362
IBM AS/400 manual Using Program-Described WORKSTN Files