IBM AS/400 Manuel D’Utilisation

Page de 489
 
Using Program-Described WORKSTN Files
 
 
*.. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ..*
AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions++++++++++++++++++++*
R FILCTL
SFLCTL(SUBFIL)
A N70
SFLCLR
A  70
SFLDSPCTL
A  71
SFLDSP
SFLSIZ(15)
SFLPAG(15)
A
TEXT('Subfile Control Record')
OVERLAY
A
71
ROLLUP(97 'Continue Search')
A
CA01(98 'End of Program')
A
HELP(99 'Help Key')
A
1
2'Customer Name Search'
3
2'Search Code'
SRHCOD
R
I
3 14PUTRETAIN
5
2'Number'
5 10'Name'
5 32'Address'
5 54'City'
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 subfile, the search
input field, constants, and function keys. The keywords you can use indicate the
following:
¹
SFLCTL names the associated subfile (SUBFIL).
¹
SFLCLR indicates when the subfile should be cleared (when indicator 70 is off).
¹
SFLDSPCTL indicates when to display the subfile control record (when indi-
cator 70 is on).
¹
SFLDSP indicates when to display the subfile (when indicator 71 is on).
¹
SFLSIZ indicates the total number of records to be included in the subfile (15).
¹
SFLPAG indicates the total number of records in a page (15).
¹
ROLLUP indicates that indicator 97 is set on in the program when the user
presses the Roll Up key.
¹
HELP allows the user to press the Help key for a displayed message that
describes the valid function keys.
¹
PUTRETAIN allows the value that is entered in the SRHCOD field to be kept in
the display.
In addition to the control information, the subfile control-record format also defines
the constants to be used as column headings for the subfile record format.
Using Program-Described WORKSTN Files
You can use a program-described WORKSTN file with or without a format name
specified on the output specifications. The format name, if specified, refers to the
name of a data description specifications record format. This record format
describes:
¹
How the data stream sent from an RPG program is formatted on the screen
338
ILE RPG for AS/400 Programmer's Guide