This command copies files and directories to and from the data zos.
zos copy source dest [--recursive]
The datagrid source from which the files or directories are to be copied.
The datagrid destination to which the files or directories are to be copied.
Shows the full job hierarchy. This option can be used with or without the --detail option.
Specifies the terminal width for formatting. The user must enter a value with this option.
Displays a help message for this operation.
Turns on debug output during this operation.
Turns on verbose output during this operation.
To copy a file from the job instance directory to a local file, use the following command:
zos copy grid:///^/results.txt local.txt
To copy a file from a named job instance directory to a local file, use the following command:
zos copy grid:///^user.myjob.1024/results.txt local.txt
To copy a local file into the job directory for job myjob, use the following command:
zos copy local.txt grid:///!myjob
To copy a local file into a subdirectory of the job directory, use the following command:
zos copy local.txt grid:///!myjob/subdir
To copy a local file into the current job instance directory, use the following command:
zos copy local.txt grid:///^/