To write all information in a specific catalog to a data set, enter
the LISTCAT command and specify:
- The CATALOG operand and enclose the catalog name in parentheses.
- The OUTFILE (abbreviated OFILE) operand
- The OUTFILE operand specifies the ddname of the DD statement or
the name specified with the FILE operand of the ALLOCATE command,
which defines the data set to which the system writes the list of
catalog entries. To find out which DD statement defines the data set
you want to write to, use the LISTALC command. For more information
on how to do this, see Displaying Ddnames and Data Set Disposition.
- When using the OUTFILE operand, enter the ddname or file name
immediately after the operand, and enclose it in parentheses.
Example |
---|
To write all of the information in catalog
USECAT1 to data set CATLIST1.DATA, where CATLIST.DATA is defined by
DD statement CATDD, enter: LISTCAT CATALOG('catalog.usecat1') OUTFILE(catdd)
|
If USECAT2 is a password-protected catalog, and the password is
VGTBLS, enter a slash (/) and the catalog's password immediately following
the catalog name field.
Example |
---|
To list all of the information in password-protected
catalog USECAT2 at your terminal, enter: LISTCAT CATALOG('catalog.usecat2'/vgtbls)
|