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
.-256----.
>>-LRECL--+--------+-------------------------------------------><
'-length-'
Parameters
- length
- The size of the records in a data set. The valid range is 0 -
32 760 or x. The default is 256. x corresponds
to a length of 32 768.
Examples
Set the logical record length
to 128 bytes:
LRECL 128
Specify no
value for LRECL to allow the LRECL of a model DCB data set or SMS
dataclass to be used:
LRECL
Usage 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.