Figure 277 shows how to specify the SLNO keyword.
Figure 277. Specifying the SLNO Keyword
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R RECORD1 SLNO(*VAR)
00020A FIELD1 5 I 2 2
00030A FIELD2 5 B 3 2
00040A
00050A R RECORD2 SLNO(2)
00060A FIELD3 5 10 2
00070A FIELD4 5 B 10 13
A
In Figure 277, when the starting line number is zero or one, FIELD1 is displayed on line 2 and FIELD2 is displayed on line 3, as specified. When the starting line number is set to 2 in your program, FIELD1 is displayed on line 3 (2 - 1 + 2 = 3) and FIELD2 is displayed on line 4 (2 - 1 + 3 = 4).
FIELD3 and FIELD4 are always displayed on line 11 (2 - 1 + 10 = 11).
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.