Specifying the data set or volume for the CLI command


When using a CLI command, you must specify either a specific name or volume, or a pattern. The issued command displays all the backup copies, archives, and volume full dump copies that meet the criteria. The pattern adheres to the z/OS ISPF conventions. 

See the following table for the requirements for each CLI command:

Command

Requirement

LISTDSN

LISTVOL

A specific data set name or a pattern

RESTDSN

RESTVOL

A specific data set or volume name

Important

You can use the LISTDSN and LISTVOL command to identify a data set or volume to be restored, and then change the command name to RESTDSN or RESTVOL while leaving the rest of the parameters the same in order to perform the restore.

ARCHIVE

RECALL

DELCDS

DELBACK

DELARC

A specific data set name

DELVOL

A specific volume name

Data set name pattern

Pattern suffix

Description

Example

Selects

%

Single-character variable

SYS%.PROCLIB

SYS1.PROCLIB SYS2.PROCLIB

*

1-8 character variable

SYS2.*.PROCLIB

SYS2.DBA.PROCLIB SYS2.USER.PROCLIB

SYS2.*

SYS2.PROCLIB SYS2.PARMLIB

SYS*.PROCLIB

SYS2.PROCLIB SYSDB.PROCLIB

**

Any number (including zero) of 0-8 character variables

Important

Specify SYS2**.PROCLIB to pick up SYS2.PROCLIB.

SYS2.**.PROCLIB

SYS2.PROCLIB SYS2.DBA.PROCLIB SYS2.DBA.DEV.PROCLIB SYS2.USER.PROCLIB

SYS2.**

SYS2.PROCLIB SYS2.PARMLIB SYS2.DBA.PROCLIB SYS2.DBA.DEV.PROCLIB SYS2.USER.PROCLIB SYS2.USER.LOAD

Important

When you specify a data set name without a pattern suffix such as * or **, it is treated as a specific name and not a prefix. This is intended to simplify the CLI interface by allowing the use of data set names and volumes without quotation marks.

Volume serial pattern

Pattern suffix

Description

Example

Selects

%

Single-character variable

M%INST

M1INSTM2INST

***

0-8 character variable. When selecting volumes, ‘**’ behaves the same as ‘*’

M*ST

M1INSTM2INSTM2ZZSTM3ZZST

M2*

M2INSTM2ZZST

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*