The following section explains the syntax rules.
ADD DSNAME=MY.DATA.SET,DATA=MY.DATA.SET.D,SUPEREXP
----+----1----+----2----+ ..//.. +----7----+----8
ADD DSNAME=MY.DATA.SE DE,RELEX
ASE=80
The following table provides examples on how you can use special characters in data set names:
|
Syntax |
Description |
|---|---|
|
DSN=* |
Selects all single-level VSAM data set names. |
|
DSN=*.* |
Selects all two-level VSAM data set names. |
|
DSN=A.*.PROD |
Selects all three-level VSAM data set names that 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 VSAM data set names that 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 VSAM data set names. |
|
DSN=A.TEST?? |
Selects all two-level VSAM 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 VSAM 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 which starts with A. |
|
DSN=A.TEST/ |
Selects all VSAM 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 VSAM data sets which have a first node of A, any second node, a third node which is two characters in length and the first character is the letter C, and any node or nodes which follow. |
|
DSN=!TEST |
Selects all VSAM data sets that end with the string TEST. |
|
DSN=!TEST! |
Selects all VSAM 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= |
Selects all VSAM data sets, which 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 |
| Copyright © 2012 CA. All rights reserved. |
|