HP-UX SNAplus2 R7 APPC Application Suite User's Guide
ACOPY
Using ACOPY
Guide). If security is configured for your system, you must specify the -u UserID option and the -p Password
option. For information about these and other
ACOPY options, see Section 3.2.2, ACOPY Options. See also Section
2.2.1, Selecting a User ID.
3.2.1 ACOPY Restrictions
Following are the restrictions for using
ACOPY:
• You can specify only one file to copy from and one file to copy to. To perform more complex copying operations,
use
AFTP.
• One of the two named files must be a remote file, and the other must be a local file. It is not possible to copy
files local-to-local or remote-to-remote.
• To use the system without specifying a user ID and password, you must set up an “anon” account and disable
conversation-level security. (For more information about disabling security, refer to the HP-UX SNAplus2
Administration Guide.)
3.2.2 ACOPY Options
The
ACOPY options are as follows:
-u UserID
Specifies the user ID that is sent to the remote system. The UserID can be one to eight characters in
length. One indication that the remote transaction program requires security is if you receive the CPI-C
error message CM_SECURITY_NOT_VALID when attempting to copy a file. If you have conversation-level
security configured for your system, this option is required.
-p Password
Specifies the password that is sent to the remote system. This option is required when a user ID has been
specified or if you have security configured for your system. The Password can be one to eight characters in
length. If you do not enter a password after specifying a user ID,
ACOPY will prompt you to specify one.
-m ModeName
The transfer mode name. The default ModeName is #BATCH.
-t TPName
The TP name that runs on the remote system (provider TP). The default TPName is
AFTPD.
-n
This option overrides the security option. By default,
ACOPY sends the user ID of the running process to the
remote system. If the remote system is not configured to require security, this option stops a user ID from
being sent. If the remote system is not configured to require security, use this option if you receive the error
message CM_SECURITY_NOT_VALID.
-b
This option specifies that data should be transferred in binary format.
-a
This option specifies that data should be transferred in ASCII text format. This is the default file transfer
mode, but you can configure the transfer mode default to be either ASCII or binary depending on the file
type being transferred. For more information, see Section 2.1, AFTP Configuration.
If you specify any of the options more than once, the system uses the last one entered.
26