Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Copy To Directory (CPYTODIR) command is used to copy system distribution directory data from a tape or diskette unit to the local system. The directory data that is copied to the local system is created by the Copy From Directory (CPYFRMDIR) command on a remote system. This function allows the local system to begin a directory shadowing environment with the remote system by shadowing changes made to the directory data from the remote system.
Caution: Do not use this command as a backup utility to save and restore directory data for data recovery purposes. Follow the normal backup and recovery procedure guidelines described in the Backup and Recovery book, SC41-5304.
Restriction: You must have security administrator (*SECADM) authority to use this command.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
LABEL | File label | Character value | Required, Positional 1 |
DEV | Device | Values (up to 4 repetitions): Name | Required, Positional 2 |
AUTOINZ | Automatically initialize | *YES, *NO | Optional |
RPLDTA | Replace data | *YES, *NO | Optional |
VOL | Volume identifier | Single values: *NONE Other values (up to 50 repetitions): Character value |
Optional |
SEQNBR | Sequence number | 1-9999, *NEXT | Optional |
ENDOPT | End of tape option | *REWIND, *LEAVE, *UNLOAD | Optional |
Top |
Specifies the device file label on the tape or diskette used for the copy operation. A maximum of 17 characters can be specified for tape devices; a maximum of 8 characters can be specified for diskette unit.
This is a required parameter.
Top |
Specifies the names of the tape or diskette units used for the copy operation. Each tape or diskette unit name must already be known on the system by a device description.
This is a required parameter.
Top |
Specifies whether to automatically pass the information copied to this system to other collector systems through directory shadowing.
Top |
Specifies whether to replace a directory entry on the local system with directory data copied from tape or diskette.
Top |
Specifies one or more volume identifiers used by the file.
Top |
Specifies the sequence number of the data file on the tape that is processed. The four-position file sequence number is read from the first header label of the data file.
Top |
Specifies the operation that is automatically performed on the tape volume after the operation ends. If more than one volume is included, this parameter applies only to the last tape volume used; all other tape volumes are rewound and unloaded when the end of the tape is reached.
Top |
CPYTODIR DEV(DKT01) AUTOINZ(*YES) RPLDTA(*NO)
This command copies all of the directory data from diskette device DKT01 to the local system. Data that is copied to the local system is passed along to other systems that use communications to perform directory shadow initializing or normal directory shadowing. Local system data identified as being the same as diskette data is not replaced.
Top |
*ESCAPE Messages
Top |