RECFM (FTP client and server) statement

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

Read syntax diagramSkip visual syntax diagram
   .-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

Related topics