The main purpose of the COPYDDIR subcommand is to place the source description of a dump or trace into your current user dump directory, so that you can format and analyze the dump or trace.
COPYDDIR [ INDATASET(dsname)|INDSNAME(dsname) ]
[ INFILE(ddname)|INDDNAME(ddname) ]
[ EXPORT {(DSNAME(dsname))|(DATASET(dsname))} ]
{(FILE(ddname))|(DDNAME(ddname)) }
[ SUMMARY | NOSUMMARY ]
[ DSNAME(dslist)|DATASET(dslist) ]
[ FILE(ddname-range-list)|DDNAME(ddname-range-list) ]
[ PATH(path-name ...) ]
-------- SETDEF-Defined Parameters -------------------------
Note: You can override the following SETDEF parameters.
See SETDEF subcommand — set defaults.
[ TEST | NOTEST ]
INDATASET or INDSNAME specifies the input directory by its data set name.
INFILE or INDDNAME specifies the ddname of the input data set.
NOSUMMARY suppresses the summary line unless one or more source descriptions were not copied, for example, if error conditions exist, or if the description already exists in the output directory. You might use NOSUMMARY when running COPYDDIR within a CLIST or REXX exec.
DSNAME or DATASET specifies the data set name or a list of data set names of cataloged data sets. The dslist can include a wildcard character (*) to represent any name. A data set name can contain a single asterisk in place of any qualifier except the first. For example, DSNAME (A,*,C) specifies all names with 3 qualifiers that have A as the first qualifier and C as the third qualifier.
FILE or DDNAME specifies the ddname, a list of ddname, or a range of ddnames for the data sets. For example, FILE(A:C) specifies all ddnames from A to C, including A, AA, ABC, B, C, and so on.
When specifying more than one data set name or ddname, separate the names with commas or blanks. When specifying a range of ddnames, separate the first and last ddname with a colon.
PATH specifies the path-name or list of path-names of a file or directory on a z/OS® UNIX file.
See Standard subcommand return codes for a description of the return codes produced by the COPYDDIR subcommand.
COMMAND ===> COPYDDIR INDSNAME(SYS1.DDIR) DSNAME(MY.DUMP)
COPYDDIR copies the source description for MY.DUMP from SYS1.DDIR into your current user dump directory and displays a summary of the processing.
COMMAND ===> COPYDDIR FILE(W:X) DSNAME(MY.DUMP2) INDSNAME(DUMPDIR)
IPCS copies the source descriptions from the DUMPDIR directory for all data sets beginning with W or X and data set MY.DUMP2 into your current user dump directory. IPCS displays a summary of the processing.