Previous Topic: Command Language Syntax Rules

Next Topic: Command Structures in the Command Language


Examples:

The command language syntaxes are described in the following section.

DSN=*

Selects all single-level data set names.

DSN=*.*

Selects all two-level data set names.

DSN=A.*.PROD

Selects all three-level data set names which have an A as the first node, any character or characters as the second node, and PROD as the third node.

DSN=A*.PROD

Selects all two-level data set names which have an A followed by zero to seven other characters as the first node, and PROD as the second node.

DSN=?

Selects all single-character data set names.

DSN=A.TEST??

Selects all two-level data set names that have an A as the first node, and TEST plus two other characters as the second node.

DSN=A/

Selects all data sets that begin with the character A. The data set names can have any number of nodes. The first node can be the letter A, or be a string that starts with A.

DSN=A.TEST/

Selects all data sets that begin with the string A.TEST. Examples:

"A.TEST"

"A.TEST1"

"A.TEST1.TEST2"

"A.TEST.PROD"

DSN=A.*.C?./

Selects all data sets which have a first node of A, any second node, a third node which is exactly two characters in length and the first character is the letter C, and any node or nodes which follow.

DSN=!TEST

Selects all data sets that end with the string TEST

DSN=!TEST!

Selects all data sets that have the string TEST somewhere in it. The string TEST can be at the beginning or the end of the data set name.

DSN=
!TEST!VSAM

Selects all data sets that have the string TEST somewhere in the name and VSAM at the end. Examples:

"A.TEST.VSAM"

"A.TESTVSAM"

"A.TEST1.VSAM"

"A.TEST1.KSDSVSAM"