Consecutive SCAN and/or FIND commands apply to all subsequent selection and action commands, until another SCAN or FIND command is encountered.
For example, if you have multiple naming conventions, you can report on each of your data sets with:
FIND DSNAMES=SBTJP./ FIND DSNAMES=LABS.TJP./
REPORT MVDICT
The report command would apply to each of the FIND commands.
To backup the data sets and clusters cataloged in three ICF, VSAM or OS CVOL catalogs, you can use:
SCAN CATALOGS=VOL05.USERCAT SCAN CATALOGS=VOL00.USERCAT SCAN CATALOGS=VOL05.TESTCAT
SELECT DSN=/
BACKUP
You can also combine FIND and SCAN commands, although this would result in extra overhead if the data set name on the FIND command is defined in the object of the SCAN:
SCAN CATALOGS=ICF.TESTCAT FIND DSNAMES=LABS.*.TESTVSAM/ SELECT DSN=/
REPORT CLDATA
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|