copy

This command copies files and directories to and from the data zos.

Syntax

zos copy source dest [--recursive] 

Arguments

source

The datagrid source from which the files or directories are to be copied.

dest

The datagrid destination to which the files or directories are to be copied.

Options

-r, --recurse

Shows the full job hierarchy. This option can be used with or without the --detail option.

-C=, --cols=

Specifies the terminal width for formatting. The user must enter a value with this option.

-h, --help

Displays a help message for this operation.

-d, --debug

Turns on debug output during this operation.

-v, --verbose

Turns on verbose output during this operation.

Examples

Example 1

To copy a file from the job instance directory to a local file, use the following command:

zos copy grid:///^/results.txt local.txt

Example 2

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

Example 3

To copy a local file into the job directory for job myjob, use the following command:

zos copy local.txt grid:///!myjob

Example 4

To copy a local file into a subdirectory of the job directory, use the following command:

zos copy local.txt grid:///!myjob/subdir

Example 5

To copy a local file into the current job instance directory, use the following command:

zos copy local.txt grid:///^/