Previous Page Contents Page Next Page

3.3 Sending Files

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

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

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

Do not overwrite existing data in a member, or truncate lines. If this option is specified, the file transfer program stops the send operation under the following conditions:

  • Data on the AS/400 is going to be overwritten by the transfer operation

  • Lines which are longer than a specified length are going to be truncated

Overwrite existing data in a member and truncate lines if necessary. If this option is specified, the file transfer program continues the send operation even when the following conditions apply:

  • Data on the AS/400 is going to be overwritten by the transfer operation

  • Lines which are longer than a specified length are going to be truncated

These options should be used if you are controlling file transfer from a script. If none of these options are specified, the file transfer program warns you if data is going to be overwritten, or if lines will be truncated, and prompts you to specify whether you want to continue with the file transfer.

record_length
record_length

Specifies the record length of the file that is created by the file transfer (if a file is created). The default value of record_length is the length of the longest line in the Solaris file that is to be sent plus 12 bytes (for AS/400 sequence and date information). This option is ignored if a description file is specified using the option and a reference file is specified with the option.

AS/400_reffile
AS/400_reffile

Specifies that if a file is created on the AS/400 as a result of the file transfer, it will be a data type file, and passes AS/400_reffile to the AS/400 as the name of an AS/400 format reference file.

The option can only be specified if there is a description file specified.

authority
authority

Specifies that if a file is created on the AS/400 as a result of the file transfer, its public authority is set to authority. Possible values are:

  • READ/WRITE

  • READ

  • ALL

  • NONE

For more information about these values, refer to your AS/400 documentation.

membertext
membertext

If a member is created as a result of the transfer, its description text is set to membertext. If no value is specified, there is no description text.

filetext
filetext

If a file is created as a result of the file transfer, its file description text will be set to filetext. If no value is specified, there is no file description text.

3.3.1 Output from Send File Transfer Command

This command either creates a new file on the AS/400 or a file or changes the data held in an existing file on the AS/400.

Previous Page Contents Page Top of Page Next page