Spanned record interpretation

When viewing the open file record information, where variable spanned records might be present, the user is required to reassemble the logical view of the record if a spanned record is involved. This requirement is because the buffers on which the record information is based might not still contain all of the segments for a particular spanned record. When spanned records are involved, the record information heading for each record contains “first segment”, “intermediate segment”, and “last segment” according to the data available and the structure of the particular spanned record (there might be zero to many intermediate segments).

Following are two real-time report extracts of open file information.

Sample real-time report extract of open input file information (Part 1 of 2) shows file information and buffers for an input file:
Figure 1. Sample real-time report extract of open input file information (Part 1 of 2)
Open Files

File Name . . . . . . . . . : INDD
  Data Set Name . . . . . . : LJBERRY.OUT80S
  File Attributes . . . . . : ORGANIZATION=SEQUENTIAL, ACCESS MODE=SEQUENTIAL,
                              RECFM=VARIABLE BLOCKED  SPANNED
  Last I/O Function . . . . : READ
  Open Status . . . . . . . : INPUT
  File Status Code. . . . . : 0

  Previous Record -2. . . . : Segment data length 6, variable record first segment
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053F32            C6C6C6F6 F6F6                       *FFF666          *

  Previous Record -1. . . . : Segment data length 32, variable record intermediate segment
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053F40            40404040 40404040 40404040 40404040 *                *
        Line 08053F50 same as above
Figure 2. Sample real-time report extract of open input file information (Part 2 of 2)

  

  Previous Record . . . . . : Segment data length 2, variable record last segment
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053F68            4040                                *                *



  Current Record. . . . . . : Record data length 20, variable record
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053F6E            C7C7C7F7 F7F74040 40404040 40404040 *GGG777          *
  08053F7E       +10  40404040                            *                *

  Next Record . . . . . . . : Segment data length 2, variable record first segment
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053F86            C8C8                                *HH              *

  Next Record +1. . . . . . : Segment data length 8, variable record last segment
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053F90            C8F8F8F8 40404040                   *H888            *
  NOTE: Some segments not available due to buffer wrap-around.
Sample real-time report extract of open output file information shows file information and buffers for an output file:
Figure 3. Sample real-time report extract of open output file information
Open Files

File Name . . . . . . . . . : OUTDD
  Data Set Name . . . . . . : LJBERRY.OUT80S
  File Attributes . . . . . : ORGANIZATION=SEQUENTIAL, ACCESS MODE=SEQUENTIAL,
                              RECFM=VARIABLE BLOCKED  SPANNED
  Last I/O Function . . . . : WRITE
  Open Status . . . . . . . : OUTPUT
  File Status Code. . . . . : 0

  Last Record Written -2. . : Segment data length 20, variable record first segment
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053F74            C9C9C9F9 F9F94040 40404040 40404040 *III999          *
  08053F84       +10  40404040                            *                *

  Last Record Written -1. . : Segment data length 32, variable record intermediate segment
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053F90            40404040 40404040 40404040 40404040 *                *
        Line 08053FA0 same as above

  Last Record Written . . . : Segment data length 28, variable record last segment
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053FB8            40404040 40404040 40404040 40404040 *                *
  08053FC8       +10  40404040 40404040 40404040          *                *

  Current Record Build Area : RDW is zero, no length assigned yet
  Address  Offset     Hex                                 EBCDIC
  -------- ---------  ----------------------------------- ------------------
  08053E90            D1D1D1C1 C1C14040 40404040 40404040 *JJJAAA          *
  08053EA0       +10  40404040 40404040 40404040 40404040 *                *
        Lines 08053EB0-08053EC0 same as above
  08053ED0       +40  40404040 40404040 40404040 40406E6E *              >>*
  08053EE0       +50  00000000                            *....            *