Use this record-level keyword to specify that this record format is to be a subfile control record format. This record format must immediately follow the subfile record format.
SFLCTL(subfile-record-format-name)
You must specify the name of the subfile record format as the parameter value for this keyword. The subfile control record format can contain field descriptions as well as subfile control keywords.
Your program can display subfile records only by issuing an output operation to the subfile control record format.
The subfile record format (SFL keyword) defines the format of the records in the subfile as opposed to the subfile control record format (SFLCTL keyword), which defines how the subfile can be displayed, cleared, deleted, and initialized. The program sends output operations to the subfile record format to build the subfile. It also sends output operations to the subfile control record format, setting option indicators for various subfile keywords to display, clear, delete, and initialize the subfile.
The following tables are a summary of subfile keywords used with the SFLCTL keyword. (Field-level keywords are used with fields in the subfile control record format.)
SFLCTL |
CHCAVAIL |
SFLLIN |
1The SFLDSPCTL keyword is required if your program sends an input operation to the subfile control record format. |
SFLDROP
SFLFOLD
SFLROLVAL
SFLDROP
SFLFOLD
SFLINZ
SFLLIN
SFLRCDNBR
SFLRNA (because SFLINZ is not valid)
SFLROLVAL
The USRDFN keyword is not valid for the subfile control record format.
The keywords CHCAVAIL, CHCSLT, and CHCUNAVAIL can be used only if either SFLSNGCHC or SFLMLTCHC is also used.
Option indicators are not valid for this keyword.
The following example shows how to specify the SFLCTL keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A R SFLR SFL A* A* (at least one displayable field) A* 00020A R SFLCTLR SFLCTL(SFLR) 00030A SFLPAG(17) 00040A SFLSIZ(17) 00050A SFLDSP 00060A SFLDSPCTL A