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

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

Related topics