HELP: Suffix appended after record-format qualifier to the output filename (open-world only) TYPE: STRING SYNTAX: ADDEXT='str'
The ADDEXT string causes FIOREC to build a parseable record-format qualifier from the effective write parameters and append it, followed by the ADDEXT string itself, to the output filename. This makes the output file self-describing so that it can be read back without specifying RECFM or LRECL explicitly.
Example: writing a fixed-format FB80 file with ADDEXT=".bin" produces a filename extension of ".FB80.bin". Reading the resulting file without any record-format parameters causes FIOREC to parse the ".FB80." part from the filename and automatically apply RECFM=FB LRECL=80.
Supported qualifier tokens are derived from the record format and record length:
- Fixed-length formats (FB, FBA, FBM, FBR): ".FB<lrecl>." or ".FBA<lrecl>." etc. - Variable-length formats (VB, VBA, VBM, ...): ".VB." etc. - Delimiter-based formats (DLM): ".DLM<n><hex>." where n is the delimiter length and hex is the delimiter bytes in hexadecimal. - Fixed-length stream (LFM): ".LFM<lrecl>."
ADDEXT has no effect on z/OS, where the record format is always determined from the data set catalog (DCB attributes). ADDEXT is silently ignored if FIOREC cannot derive a qualifier from the effective write parameters (e.g. for OPN_VAR without a known record length).
ADDEXT has no effect if the output filename starts with ':' (subsystem filenames).