The RECORD Clause has two formats:
Format 1 specifies the number of character positions for fixed-length records:
->->---RECORD*--------*integer-3*----------*---> *CONTAINS* *CHARACTERS*
Format 2 specifies the number of character positions for either fixed or variable-length records. You must specify the record size as the number of character positions needed to store the record internally. That is, specify the number of bytes occupied internally by the characters of the record (not the number of characters used to represent the item within the record).
The maximum record length for a file is 32 766.
When one of the entries within a record description contains an OCCURS DEPENDING ON clause, the compiler calculates the record size as follows:
->->---RECORD*--------*integer-4 TO integer-5-*----------*-> *CONTAINS* *CHARACTERS*
Integer-3 must be an unsigned integer that specifies the number of character positions contained in each record in the file.
Integer-4, integer-5 must be unsigned integers. Integer-4 specifies the size of the smallest data record, and integer-5 specifies the size of the largest data record.
File-name must follow the level indicator (FD or SD), and must be the same as that specified in the associated SELECT clause. File-name must adhere to the rules of formation for a user-defined word; at least one character must be alphabetic. File-name must be unique within this program.
One or more record description entries must follow file-name. When you specify more than one record description entry, each entry implies a redefinition of the same storage area.
The clauses that follow file-name are optional; they may appear in any order.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.