ILE COBOL Language Reference

Multiple Record Processing

If more than one record description entry is associated with file-name-1, these records automatically share the same storage area; that is, they are implicitly redefined. After a READ statement is executed, only those data items within the range of the current record are replaced; data items stored beyond that range are undefined. Figure 21 illustrates this concept. If the range of the current record exceeds the record description entries for file-name, the record is truncated on the right to the maximum size. In either of these cases, the READ statement is successful and an I-O status is set indicating a record length conflict has occurred.

Figure 21. READ Statement with Multiple Record Description

READ Statement with Multiple Record Description


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]