Ü
SFLCTL
·
This keyword is at record level to
define a subfile control record format.
·
The record format containing this
keyword immediately follows the record format using SFL keyword.
·
The format of the keyword is:
·
SFLCTL(subfile-record-format-name)
·
This record format controls how the
content is to be displayed on the screen e.g. it controls clearing the screen,
initializing the screen, displaying the record on the screen.
Example
Here in the example we are creating
one subfile record RECSFL and immediately after that there is a subfile control
record RECCTL which has been associated with the subfile record with the
keyword SFLCTL(RECSFL).
0001.00 A DSPSIZ(24 80 *DS3)
0002.00 A CA03(03 'EXIT')
0003.00 A R RECSFL SFL
0004.00 A S_FLD01 5 0B 07 20
0005.00 A R RECCTL SFLCTL(RECSFL) >>>>>>>>>>>>>
0005.01 A SFLPAG(10)
0005.02 A SFLSIZ(9999)
0005.03 A 40 SFLCLR
0005.05 A 41 SFLDSP
0005.06 A 42 SFLDSPCTL
0005.07 A 45 SFLEND(*MORE)
0005.08 A RCDNBR 4S 0H SFLRCDNBR(CURSOR)
0005.09 A 01 25'TEST TO CHECK THE BUFFER'
0006.00 A 05 20'FLD01'