Use the
RECFM statement to specify the record format of new, dynamically allocated
data sets.
- Server
- This setting applies when creating data sets on the server's system.
- Client
- This setting applies when creating data sets on the client's system.
Syntax
.-RECFM VB----------.
>>-+-------------------+---------------------------------------><
'-RECFM--+--------+-'
'-format-'
Parameters
- format
- The record format of a data set. Valid record formats are:
- F
- FM
- FA
- FS
- FSA
- FSM
- FB
- FBM
- FBA
- FBS
- FBSM
- FBSA
- V
- VM
- VA
- VS
- VSM
- VSA
- VB
- VBM
- VBA
- VBS
- VBSA
- VBSM
- U
- UA
- UM
The default record format is VB. The meanings of the record formats
are: - Format
- Description
- A
- Records contain ISO⁄ANSI control.
- B
- Blocked records.
- F
- Fixed record length.
- M
- Records contain machine code control characters.
- S
- Spanned records (if variable) or Standard (if fixed).
- U
- Undefined record length.
- V
- Variable record length characters.
Examples
Use fixed blocked record format:
RECFM FB
Specify
RECFM with no value to allow the RECFM value of a DCB data set or
an SMS dataclass to be used:
RECFM
Usage notes
- If you specify no value for format,
no record format is specified when allocating new data sets.
- The record format attribute can be obtained from an SMS data class
using the DATACLASS statement, from a model data set using the DCBDSN
statement, or from the RECFM statement.
- You should specify no value for format if
you:
- Specify the DATACLASS statement and the record format from the
SMS data class is to be used, or
- Specify the DCBDSN and the record format from the model data set
is to be used.
- If you specify both a DATACLASS and a DCBDSN, and you specify
RECFM with no value, the record format attribute is obtained from
the model data set.
- You can override the record format attribute from the DATACLASS
or DCBDSN settings by specifying RECFM with a value, or by not specifying
the RECFM statement and taking the default.