Previous Page Contents Page Next Page

3.4 Receiving Files

The following command is used to transfer data from the file AS/400location on the AS/400 to a local file called filename:

sna400ft receive filename AS/400location [general options] [ receive options]

This command can be used with the general options described in General File Transfer Command Options, or the receive options described in the following list. File transfer messages are described in File Transfer Messages.

Do not overwrite an existing file. If this option is specified the file transfer program stops the receive operation if an existing file is going to be overwritten by the transfer operation.

Overwrite an existing file. If this option is specified the file transfer program continues the receive operation, overwriting an existing file if necessary.

The options above should be used if you are controlling file transfer from a script. If none of the options above are specified then the file transfer program warns you if a file is going to be overwritten and prompts you to specify whether they wish to continue with the file transfer.

3.4.1 Output from Receive File Transfer Command

Any data returned from the AS/400 as a result of this command is directed to stdout, and if the option is specified, a description file is created. (For more information about description files, see Description Files.) If the option is specified without a description file name, a default name of default.fdf is created. Any error messages from the AS/400 are sent to stderr.

Previous Page Contents Page Top of Page Next page