Conversion of ISO/ANSI segment control word

The ISO/ANSI segment control word (SCW) is expressed in ASCII characters and is 5 bytes in length (see Figure 1). Note that the SCW is different from the code in the IBM® segment descriptor word (SDW). The SDW is the internal data management equivalent of the ISO/ANSI SCW. Only 4 bytes are used by data management, but the user buffer area must accommodate an extra byte to allow for conversion from the ISO/ANSI SCW. The SDW is expressed in binary.

Figure 1. Conversion of ISO/ANSI Segment Control Word to DS/DBS Segment Descriptor Word
The SCW is expressed in ASCII characters and is 5 bytes long. The SDW is expressed in binary. The values for C in the SDW (2 low-order bits) are 00 (only segment of record), 01 (first segment of record), 11 (intermediate segment of record) and 10 (last segment of record). The values for S in the SCW (spanning indicator) are 0 (only segment of record), 0 (first segment of record), 2 (intermediate segment of record) and 3 (last segment of record)