SFLDSPCTL (Subfile Display Control) keyword for display files

You use this record-level keyword on the subfile-control record format so that the IBM® i operating system displays fields in the subfile-control record format when your program sends an output operation to the record format.

If you do not use an option indicator with this keyword, the subfile control record is displayed on every output operation to the subfile-control record format.

This keyword has no parameters.

This optional keyword is valid only for the subfile-control record format. Display size condition names are not valid for this keyword.

Option indicators are valid for this keyword.

Note: SFLDSPCTL must be in effect when the subfile is displayed for an input operation to the subfile control record to be valid, even if there are no displayable fields in the subfile-control record format.

Example

The following example shows how to specify the SFLDSPCTL keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A          R SFLR                      SFL
     A*
     A*            (at least one displayable field)
     A*
00040A          R SFLCTLR                   SFLCTL(SFLR)
00050A                                      SFLPAG(17)
00060A                                      SFLSIZ(17)
00070A  01                                  SFLDSP
00080A                                      SFLDSPCTL
     A                                  2 10'NAME'
     A                                  2 34'ADDRESS'
     A

Both the subfile and displayable fields in the subfile-control record format are displayed when option indicator 01 is set on for an output operation to SFLCTLR.