If you’re FTPing from the host, you can use the “site” subcommand to set the attributes for the file that is to receive the data. The site subcommand allows you to specify just about any data set attribute available in JCL. For instance, if you wanted the FTPed file to look like a card image, you could enter:
site lrecl=80 blksize=3120
To which FTP will respond:
>>> SITE lrecl=80 blksize=3120
200 SITE command was accepted
After you’ve entered the proper data set attributes you may use the “stat” subcommand to check:
211-Record format FB, Lrecl: 80, Blocksize: 3120
Note that the line above is a snippet of stat output. Normally the command produces several screens of data.
You can still use stat if you initiate the FTP from another platform, you just prefix it with “quote,” as shown below:
quote site lrecl=80 blksize=3120
Here, “quote” command is kind of an escape verb that directs the text following it to be processed by the host FTP server.