Viewing the next segment using the NEXT command
File-AID displays the first record of the SEGFILE formatted with the INS-BASE-FILE (BASE) layout. File-AID displays an information line at the end of the layout, DATA EXCEEDS LAYOUT, indicating that additional segment(s) are present as illustrated in the following figure.
To view the segment following the current segment (in this case, the base segment), issue the NEXT command.
Browsing the Segmented File - FASAMP.SEGFILE

Steps:
- Type NEXT in the COMMAND field.
- Press Enter.
Understanding NEXT command processing
When the NEXT command is issued, File-AID examines the criteria stored in the XREF member and tries to find a matching SEGMENT.
As shown in the following figure, the next segment of record data for record 1 of the SEGFILE is defined by the CLI-BOAT-DATA layout.
Notice that the "record type field", BOAT-RECORD-TYPE-01, contains a value of "01". This is the condition specified in the XREF that is used to determine that the layout for this segment is in fact the CLI-BOAT-DATA layout. The second data byte of each segment contains the "segment identifier" used to determine which layout to select for this portion of the record.
Notice that the column offset of the CLI-BOAT-DATA layout has the first field (FILLER) starting at location 125.When formatting segmented records it is a good idea to set up your formatted display to SHOW OFFSET and OFFSET COLUMN so that you can be sure of where in the record you are currently positioned. In this example, the CLI-BOAT-DATA segment is the second and last segment of data in this record as indicated by the information line at the end of the layout:
NEXT Command Results. Displaying the CLI-BOAT-DATA Segment.
COMMAND ===> SCROLL ===> PAGE
RECORD: 1 CLI-BOAT-DATA LENGTH: 231
---- FIELD NUMBER/NAME ------ COLUMNS- ----+----1----+----2----+----3----+----4
1 FILLER 125
2 BOAT-RECORD-TYPE-01 126 01
3 BOAT-DATE-INSURED 128 071973
4 BOAT-REGISTER-NO 134 91380
5 BOAT-INSURED-AMT 139 75000.00
6 BOAT-DOCK-NO 143 300
7 BOAT-MARINA-NAME 146 BLUE WATERS
8 BOAT-NAME 176
9 FILLER 196
****************************** BOTTOM OF DATA *********************************