CL Command Reference - CPYTODIR

CL Command List > CPYTODIR Reference

Description:

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.

Restriction: You must have security administrator (*SECADM) authority to use this command.


Examples:

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.