Information
Space announcement: BMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.

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

image2021-6-22_18-20-40.png

Steps:

  1. Type NEXT in the COMMAND field.
  2. 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:

   *** BOTTOM OF DATA ***

NEXT Command Results. Displaying the CLI-BOAT-DATA Segment.

 FILE-AID - BROWSE - USERID9.FASAMP.SEGFILE ----------------------- COL 125  231
 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 *********************************


Warning

Important

  • If you wish to return to the previously viewed segment, use the PREV command.
  • Another way to issue the NEXT command is to assign the command NEXT to a PF key. Use the KEYS primary command to access your PF key settings to review or change your PF key command defaults.


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Compuware File-AID/MVS 21.01