LRECL (FTP client and server) statement
Use the LRECL statement to specify the size of the logical records in a data set.
- Server
- This setting applies when creating files on the server's system. For example, with a PUT subcommand.
- Client
- This setting applies when creating files on the client's system. For example, with a GET subcommand.
Syntax
Parameters
- length
- The size of the records in a data set. The valid range is 0 - 32760 or x. The default is 256. x corresponds to a length of 32768. x does not correspond to the LRECL=X parameter of z/OS® MVS JCL.
Examples
Set the logical record length
to 128 bytes:
LRECL 128Specify no
value for LRECL to allow the LRECL of a model DCB data set or SMS
dataclass to be used:
LRECLUsage notes
- The record size attribute can be obtained from an SMS data class using the DATACLASS configuration statement, from a model data set using the DCBDSN configuration statement, or from the LRECL statement.
- Use LRECL without a size if you have:
- Specified a DATACLASS statement and want to use the record size from the data class, or
- Specified a DCBDSN statement and want to use the record size from the model data set.
- If you specify a DATACLASS, a DCBDSN, and LRECL without size, the value from the model data set is used.
- To override the record size attribute from the DATACLASS or DCBDSN
settings:
- Specify LRECL with a value other than 0, or
- Do not specify the LRECL statement, and use the default.
- If you specify no value for length, FTP does not specify the size of the records in a data set.
Related topics
- DATACLASS (FTP client and server) statement
- DSNTYPE (FTP client and server) statement
- EATTR (FTP client and server) statement
- DCBDSN (FTP client and server) statement
- JESLRECL (FTP server) statement
- See the information about storage management subsystem (SMS) in z/OS Communications Server: IP Configuration Guide for more information about specifying attributes when allocating new data sets.
