A record format describes all the fields and the arrangement of these
fields within a record. You can include a record format from an
externally described file in your ILE program by providing its name on the
#pragma mapinc directive. You can provide more than
one format name, or you can specify the special value *ALL to include
all record formats from the file.
If the file you are working with contains more than one record format, set the format for subsequent I/O operations with the _Rformat() function.
Record format functions are useful when working with display, ICF, and printer files. Logical files can also contain more than one record format.
The record format name for a device file defaults to blank unless you explicitly set it to a name with _Rformat(). You can reset the format name to blank by passing a blank name to _Rformat().
If the record format does not contain fields that match the option specified
(input, output, both, key, indicators or nullflds) on the
#pragma mapinc directive, the following comment appears after the
header description:
/* FORMAT HAS NO FIELDS OF REQUIRED TYPE */
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.