With the set command variables can be set and displayed, which control the behaviour of the FTP client.
Currently two variables can be modified with this command, sizeCmdTimeLimit, which controls the behaviour of the reget and reput command, and assignCCSNtoFile, which controls the assignment of the COD-CH-SET attribute to a file. The current valid values can be queried with a parameterless call of the set command or with the status command.
sizeCmdTimeLimit
A reget or reput command determines among other things the size of the local file for finding a restart point for the data transfer. Especially when the transfer type is not binary, the determination of the file size can be very time consuming, so the usage of reget/reput yields barely a time advantage.
With the variable sizeCmdTimeLimit the duration of the size determination can be limited, i.e. when the limit value is exceeded the size determination is cancelled and as a result instead a reget/reput command the corresponding get/put command is executed.
set |
sizeCmdTimeLimit <value> |
sizeCmdTimeLimit <value>
Maximum duration of the size determination in seconds.
The default is 60 seconds.
assignCCSNtoFile
The attribute COD-CH-SET can be assigned to a file, which specifies which character set to use when interpreting the file. The variable assignCCSNtoFile determines, whether such an assignment shall be performed by the FTP client when writing a file. The variable can take the values NO and YES; for compatibility reasons the default is NO.
set |
assignCCSNtoFile NO | YES |
NO
No COD-CH-SET attribute is assigned to the written files. This is the default.
YES
The currently valid host/EBCDIC CCSN is assigned to the written files (see the setcode command).
The BS2000 FTP server has a variable with the same name for files written by the FTP server. This variable can be set with quote SITE SOPT assignCCSNtoFile YES
to YES and with quote SITE SOPT assignCCSNtoFile NO
to NO. The currently valid value of the variable can be queried with quote STAT
.