Figure 273 shows how to specify the SFLSIZ keyword.
Figure 273. Specifying the SFLSIZ Keyword
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00010A R SFLR SFL 00020A 21 FIELD1 78 2 2 00030A 22 FIELD2 40 3 2 00040A* 00050A R SFLCTLR SFLCTL(SFLR) 00060A SFLPAG(5) 00070A SFLSIZ(5) 00080A SFLDSP 00090A SFLDSPCTL A
Your program issues the following output operations:
Output Operation To | Option Indicators Set | Result |
---|---|---|
|
|
|
SFLR | 21 on 22 off | Only FIELD1 written to subfile |
SFLR | 21 on 22 on | FIELD1 and FIELD2 written to subfile |
SFLR | 21 off 22 on | Only FIELD2 written to subfile |
(The OS/400 program sends status message CPF5003 to your program.) |
|
|
SFLCTLR | No indicator necessary | Subfile displayed |
The resulting display is as follows:
In Figure 274, a fourth record cannot be written to the subfile because there is no room on the display for it (SFLPAG(5) has been specified in the DDS).
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.