For variable spanned records under the segment interface
Using the GET macro to read variable spanned records is the same as for fixed and variable records except that your program must make sure that all segments of the record are read. Variable spanned records use SDW instead of RDW. The SDW contains information on the length of a variable spanned record segment and whether a segment is the first, middle, or last part of the entire spanned record. See Segment descriptor word for more information.