EXFMT (Write/Then Read Format)
Free-Form Syntax | EXFMT{(E)} format-name {data-structure} |
Code | Factor 1 | Factor 2 | Result Field | Indicators | ||
---|---|---|---|---|---|---|
EXFMT (E) | format-name | data-structure | _ | ER | _ |
The EXFMT operation is a combination of a WRITE followed by a READ to the same record format. EXFMT is valid only for a WORKSTN file defined as a full procedural combined file that is externally described.
The format-name operand must be the name of the record format to be written and then read.
If the data-structure operand is specified, the record is written from and read into the data structure. The data structure must be a data structure defined with EXTNAME(...:*ALL) or LIKEREC(...:*ALL). See File Operations for information on how to define the data structure and how data is transferred between the file and the data structure.
To handle EXFMT exceptions (file status codes greater than 1000), either the operation code extender 'E' or an error indicator ER can be specified, but not both. When an error occurs, the read portion of the operation is not processed (record-identifying indicators and fields are not modified). For more information on error handling, see File Exception/Errors.
Positions 71, 72, 75, and 76 must be blank.
For the use of EXFMT with multiple device files, see the descriptions of the READ (by format name) and WRITE operations.
For more information, see File Operations.