Data Set (IBM Mainframe) - Record Format (RECFM)

Record Format (RECFM)

Regardless of organization, the physical structure of each record is essentially the same, and is uniform throughout the dataset. This is specified in the DCB RECFM parameter. RECFM=F means that the records are of fixed length, specified via the LRECL parameter, and RECFM=V specifies a variable-length record. V records when stored on media are prefixed by a Record Descriptor Word (RDW) containing the integer length of the record in bytes. With RECFM=FB and RECFM=VB, multiple logical records are grouped together into a single physical block on tape or disk. FB and VB are fixed-blocked, and variable-blocked, respectively. The BLKSIZE parameter specifies the maximum length of the block. RECFM=FBS could be also specified, meaning fixed-blocked standard, meaning the all blocks except the last one were required to be in full BLKSIZE length. RECFM=VBS, or variable-blocked spanned, means a logical record could be spanned across two or more blocks, with flags in the RDW indicating whether a record segment is continued into the next block and/or was continued from the previous one.

This mechanism eliminates the need for using any "delimiter" byte value to separate records. Thus data can be of any type, including binary integers, floating point, or characters, without introducing a false end-of-record condition. The data set is an abstraction of a collection of records, in contrast to files as unstructured streams of bytes.

Read more about this topic:  Data Set (IBM Mainframe)

Famous quotes containing the word record:

    He will not idly dance at his work who has wood to cut and cord before nightfall in the short days of winter; but every stroke will be husbanded, and ring soberly through the wood; and so will the strokes of that scholar’s pen, which at evening record the story of the day, ring soberly, yet cheerily, on the ear of the reader, long after the echoes of his axe have died away.
    Henry David Thoreau (1817–1862)