SFLSIZ (Subfile Size) Keyword for Display Files

Use this record-level keyword on the subfile control record format to specify the number of records in the subfile. The maximum number of records allowed is 9999. This keyword is required for the subfile control record format.

The format of the keyword is:

SFLSIZ(number-of-records-in-subfile | &number-of-records-in-subfile-field);

The number-of-records-in-subfile parameter can be specified in 2 ways; as a number or program-to-system field. The program-to-system field must be defined with a length of 5 and data type S.

P-fields can be used for the size of the subfile when using SFLEND with the *SCRBAR parameter. The application can communicate to the OS/400 program the number of records that the applications will be adding to the subfile. Therefore, the scroll bar can show a better picture of the subfile.

Note:
The value for the p-field must be greater than the subfile page value. If the value of the p-field is not greater than the subfile page value, the size of the subfile will be page value plus one.