The struct command defines the transfer structure or displays details of the current transfer structure. The FTP standard provides for a number of different, optional transfer structures, of which only FILE and RECORD are implemented in BS2000. If no operand is specified, the current transfer structure is displayed on the screen.
On starting FTP, struct is set to file by default.
The currently defined transfer structure can also be determined with the status command.
struct |
[file | record] |
file
Sets the transfer structure to FILE.
record
This entry enables files to be transferred while retaining the record structure. In order to specify record, the following conditions must be satisfied:
The transfer type must be EBCDIC or ASCII, and
The file attributes RECFORM=V and FCBTYPE=SAM must be set.