Selection criteria keyword reference for Restore function
The Restore process supports numerous selection criteria keywords that can be used to select archived data sets for restoration. You can also use selection criteria to explicitly exclude data sets from Restore processing.
Wildcard support for specifying masks
You may use wildcard characters in masks for data set names, volume serial numbers, and management class names. For more information about using wildcards, see appendix Wildcard support for specifying selection criteria keywords.
Selection criteria keyword restrictions
There are some restrictions on the values that you may specify for selection criteria keywords. For detailed information about these restrictions, see appendix Selection criteria keyword restrictions.
Selection criteria keyword definitions
- GROUP_NAME=name
- The
GROUP_NAME=
keyword begins a group ofCRITERIA
selection statements, where name is the group name.The value that you specify for name must be a string that is 1 – 8 characters in length.
- VOL=volser|startvolser-endvolser
- The value that is assigned to the
VOL=
keyword specifies a volume serial number or a range of volume serial numbers of candidate data set names. Candidate data sets whose volsers match the value or values that are specified for this keyword are selected for processing.volser represents a 1– to 6–byte volume serial number or a volume serial number mask to match against candidate records for inclusion in processing.
startvolser-endvolser represents a range (with no blank spaces on either side of the hyphen) of volume serial numbers to match against the candidate records for inclusion in processing.
- VOL>membername
- The
VOL>
keyword specifies the name of the parameter library member that contains a list of volume serial numbers, ranges of volume serial numbers, or masks of volume serial numbers of data sets (or any combination of these) to include in processing.The volume serial numbers that you specify in the contents of member membername may start in any column and are terminated by three or more consecutive blank spaces. You may specify volume serial numbers individually or as a range (startvolser-endvolser) where startvolser and endvolser are separated by a hyphen and no blank spaces.
- XVOL=volser|startvolser-endvolser
- The value that is assigned to the
XVOL=
keyword specifies a volume serial number or a range of volume serial numbers of candidate data set names. Candidate data sets whose volsers match the value or values that are specified for this keyword are excluded from processing.volser represents a 1– to 6–byte volume serial number or a volume serial number mask to match against candidate records for exclusion from processing.
startvolser-endvolser represents a range (with no blank spaces on either side of the hyphen) of volume serial numbers to match against the candidate records for exclusion from processing.
- XVOL>membername
- The
XVOL>
keyword specifies the name of the parameter library member that contains a list of volume serial numbers, ranges of volume serial numbers, or masks of volume serial numbers (or any combination of these) of data sets to exclude from processing.The volume serial numbers that you specify in the contents of member membername may start in any column and are terminated by three or more consecutive blank spaces. You may specify volume serial numbers individually or as a range (startvolser-endvolser) where startvolser and endvolser are separated by a hyphen and no blank spaces.
- DSN=dsnameormask
- The
DSN=
keyword specifies a data set name or data set name mask against which the names in the raw candidate file are compared to select the candidate records for inclusion in processing.The value that you specify must be 1 – 44 characters in length.
- DSN>membername
- The
DSN>
keyword specifies the name of the parameter library member that contains a list of data set names or data set name masks (or both) to include in processing. The data set names and masks that you specify in the contents of member membername may start in any column and are terminated by three or more consecutive blank spaces. - XDSN=dsnameormask
- The
XDSN=
keyword specifies a data set name or data set name mask against which the names in the raw candidate file are compared to identify the candidate records to be excluded from processing.The value that you specify must be 1 – 44 characters in length.
- XDSN>membername
- The
XDSN>
keyword specifies the name of the parameter library member that contains a list of data set names or data set name masks (or both) to exclude from processing. The data set names and masks that you specify in the contents of member membername may start in any column and are terminated by three or more consecutive blank spaces. - MGMTCLAS=mgmtclasname
- The
MGMTCLAS=
keyword specifies the name of an SMS management class or a mask for SMS management class names that you want included in processing. - MGMTCLAS>membername
- The
MGMTCLAS>
keyword specifies the name of the parameter library member that contains a list of management class names or management class name masks (or both) to include in processing. The management class names and masks that you specify in the contents of member membername may start in any column and are terminated by three or more consecutive blank spaces. - XMGMTCLAS=mgmtclasname
- The
XMGMTCLAS=
keyword specifies the name of an SMS management class or a mask for SMS management class names that you want excluded from processing. - XMGMTCLAS>membername
- The
XMGMTCLAS>
keyword specifies the name of the parameter library member that contains a list of management class names or management class name masks (or both) to exclude from processing. The management class names and masks that you specify in the contents of member membername may start in any column and are terminated by three or more consecutive blank spaces. - #DAYS_SINCE_CREATE=n|n-nn
- The value that is assigned to the
#DAYS_SINCE_CREATE=
keyword specifies a number of days or a range of days that have elapsed since the data set was created. Candidate data sets whose create dates are the specified number of days old are selected for processing.- n represents an integer in the range 0 – 99999. The create date of the candidate data set is subtracted from the current Julian date and if the difference is equal to n, the data set meets the selection criteria.
- n-nn represents a range of values in the range (0 – 99999) - (0 – 99999). The
create date of the candidate data set is subtracted from the current Julian date and if the
difference is equal to or greater than n, and is equal to or less than
nn, the data set meets the selection criteria.Note: Separate n from nn with a hyphen (
-
) and no blank spaces.
- #DAYS_SINCE_LASTUSED=n|n-nn
- The value that is assigned to the
#DAYS_SINCE_LASTUSED=
keyword specifies a number of days or a range of days that have elapsed since the data set was last used. Candidate data sets whose last-used dates match the value or fall within the range of values that are specified for this keyword are selected for processing.- n represents an integer in the range 0 – 99999. The last-used date of the candidate data set is subtracted from the current Julian date and if the difference is equal to n, the data set meets the selection criteria.
- n-nn represents a range of values in the range (0 – 99999) - (0 – 99999). The
last-used date of the candidate data set is subtracted from the current Julian date and if the
difference is equal to or greater than n, and is equal to or less than
nn, the data set meets the selection criteria.Note: Separate n from nn with a hyphen (
-
) and no blank spaces.
- #DAYS_SINCE_MIGRATED=n|n-nn
- The value that is assigned to the
#DAYS_SINCE_MIGRATED=
keyword specifies a number of days or a range of days that have elapsed since the data set was migrated to ML2. Candidate data sets whose migration dates match the value or values that are specified for this keyword are selected for processing.- n represents an integer in the range 0 – 99999. The migration date of the candidate data set is subtracted from the current Julian date and if the difference is equal to n, the data set meets the selection criteria.
- n-nn represents a range of values in the range (0 – 99999) - (0 – 99999). The
migration date of the candidate data set is subtracted from the current Julian date and if the
difference is equal to or greater than n, and is equal to or less than
nn, the data set meets the selection criteria.Note: Separate n from nn with a hyphen (
-
) and no blank spaces.
- #DAYS_SINCE_ARCHIVE=n|n-nn
- The value that is assigned to the
#DAYS_SINCE_ARCHIVE=
keyword specifies a number of days or a range of days that have elapsed since the data set was archived. Candidate data sets whose archive dates match the value or values that are specified for this keyword are selected for processing.- n represents an integer in the range 0 – 99999. The archive date of the candidate data set is subtracted from the current Julian date and if the difference is equal to n, the data set meets the selection criteria.
- n-nn represents a range of values in the range (0 – 99999) - (0 – 99999). The
archive date of the candidate data set is subtracted from the current Julian date and if the
difference is equal to or greater than n, and is equal to or less than
nn, the data set meets the selection criteria.Note: Separate n from nn with a hyphen (
-
) and no blank spaces.
- #DAYS_UNTIL_EXPIRATION=n|n-nn
- The value that is assigned to the
#DAYS_UNTIL_EXPIRATION=
keyword specifies a number of days or a range of days that remain until the data set expires. Candidate data sets with expiration dates that are this number of days in the future are selected for processing.- n represents an integer in the range 0 – 99999. The current Julian date is subtracted from the expiration date of the candidate data set and if the difference is equal to n, the data set meets the selection criteria.
- n-nn represents a range of values in the range (0 – 99999) - (0 – 99999). The
current Julian date of the candidate data set is subtracted from the expiration date of the
candidate data set and if the difference is equal to or greater than n, and is
equal to or less than nn, the data set meets the selection
criteria.Note: Separate n from nn with a hyphen (
-
) and no blank spaces.
- MIGRATION_DATE=date|startdate-enddate
- The value that is assigned to the
MIGRATION_DATE=
keyword specifies a date or a range of dates on or during which the data set was migrated to ML2. Candidate data sets whose migration dates match the value or values that are specified for this keyword are selected for processing.You can specify single dates and date ranges in the following formats:-
Julian dates:
-
YYYY.DDD or YYYY.DDD - YYYY.DDD
-
Julian dates must fall within the range 1900.001 – 2999.365.
-
-
Gregorian dates:
-
MM/DD/YYYY or MM/DD/YYYY - MM/DD/YYYY
-
DD/MM/YYYY or DD/MM/YYYY - DD/MM/YYYY
-
YYYY/MM/DD or YYYY/MM/DD - YYYY/MM/DD
-
Gregorian date values must fall within the range 01/01/1900 – 12/31/2999 (MM/DD/YYYY format), 01/01/1900 – 31/12/2999 (DD/MM/YYYY format), or 1900/01/01 – 2999/12/31 (YYYY/MM/DD format).
-
-
You must use the same date format for both startdate and enddate. startdate and enddate are separated by a hyphen (
-
) with no blank spaces on either side.
-
- EXPIRATION_DATE=date|startdate-enddate
- The value that is assigned to the
EXPIRATON_DATE=
keyword specifies a date or a range of dates on or during which the data set is set to expire. Candidate data sets whose expiration dates match the value or values that are specified for this keyword are selected for processing.You can specify single dates and date ranges in the following formats:-
Julian dates:
-
YYYY.DDD or YYYY.DDD - YYYY.DDD
-
Julian dates must fall within the range 1900.001 – 2999.365.
Note: There are two exceptions to the supported date value range forEXPIRATION_DATE
.-
You may specify
0000.000
to select data sets that have a null expiration date. -
You may specify
9999.365
to select data sets that have a permanent expiration date.
-
-
-
Gregorian dates:
-
MM/DD/YYYY or MM/DD/YYYY - MM/DD/YYYY
-
DD/MM/YYYY or DD/MM/YYYY - DD/MM/YYYY
-
YYYY/MM/DD or YYYY/MM/DD - YYYY/MM/DD
-
Gregorian date values must fall within the range 01/01/1900 – 12/31/2999 (MM/DD/YYYY format), 01/01/1900 – 31/12/2999 (DD/MM/YYYY format), or 1900/01/01 – 2999/12/31 (YYYY/MM/DD format).
-
-
You must use the same date format for both startdate and enddate. startdate and enddate are separated by a hyphen (
-
) with no blank spaces on either side.
-
- ARCHIVE_DATE=date|startdate-enddate
- The value that is assigned to the
ARCHIVE_DATE=
keyword specifies a date or a range of dates on or during which the data set was archived. Candidate data sets whose archive dates match the value or values specified for this keyword are selected for processing.You can specify single dates and date ranges in the following formats:-
Julian dates:
-
YYYY.DDD or YYYY.DDD - YYYY.DDD
-
Julian dates must fall within the range 1900.001 – 2999.365.
-
-
Gregorian dates:
-
MM/DD/YYYY or MM/DD/YYYY - MM/DD/YYYY
-
DD/MM/YYYY or DD/MM/YYYY - DD/MM/YYYY
-
YYYY/MM/DD or YYYY/MM/DD - YYYY/MM/DD
-
Gregorian date values must fall within the range 01/01/1900 – 12/31/2999. (MM/DD/YYYY format), 01/01/1900 – 31/12/2999 (DD/MM/YYYY format), or 1900/01/01 – 2999/12/31 (YYYY/MM/DD format).
-
-
You must use the same date format for both startdate and enddate. startdate and enddate are separated by a hyphen (
-
) with no blank spaces on either side.
-
Rules for specifying criteria statements
You may code the statements in any sequence with the exception of the
GROUP_NAME=
statement. If you are specifying aGROUP_NAME=
statement, it must be coded as the first statement of a criteria group.- You may code only one keyword and its corresponding value per statement. For example:
#DAYS_SINCE_CREATE=100–200
Valid #DAYS_SINCE_CREATE=100–200#DAYS_SINCE_LASTUSED=50
Not valid - You may not include blank spaces on either side of the hyphen when specifying a range of values. For example:
#DAYS_SINCE_CREATE=100–200
Valid #DAYS_SINCE_CREATE=100 – 200
Not valid #DAYS_SINCE_CREATE=100– 200
Not valid EXPIRATION_DATE=2014.150–2014.300
Valid EXPIRATION_DATE=2014.150 – 2014.300
Not valid EXPIRATION_DATE=2014.150 –2014.300
Not valid - The hierarchy of the criteria statements is as follows:
TIER-1 GROUP_NAME=
TIER-2 #DAYS_SINCE_ARCHIVE=
#DAYS_SINCE_LASTUSED=
#DAYS_SINCE_MIGRATED=
#DAYS_SINCE_CREATE=
#DAYS_UNTIL_EXPIRATION=
ARCHIVE_DATE=
DSN=
,DSN>
MGMTCLAS=
,MGMTCLAS>
VOL=
,VOL>
XDSN=
,XDSN>
XMGMTCLAS=
,XMGMTCLAS>
XVOL=
,XVOL>
EXPIRATION_DATE=
MIGRATION_DATE=
Under a Tier-1 statement, one or more Tier-2 statements may be coded. Each Tier-2 statement is compared as an AND within the sphere of the Tier-1 statement.
Example 1://AXQRESTR JOB (ACCT1,ACCT2),'PROG.NAME',REGION=0M,TYPRUN=HOLD, // NOTIFY=
&SYSUID
,CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1) //* //S010 EXEC PGM=AXQRESTR,PARM=SIM //STEPLIB DD DISP=SHR,DSN=@HLQ.SAXQLOAD //AXQPRLIB DD DISP=SHR,DSN=@HLQ.SAXQPARM //* //CRITERIA DD * GROUP_NAME=GROUP1 DSN=ABC%.DE*.** DSN=X*.D123*.HUK /*ABC%.DE*.**
and data sets with names that matchX*.D123*.HUK
are selected as candidates for GROUP1.Example 2://AXQRESTR JOB (ACCT1,ACCT2),'PROG.NAME',REGION=0M,TYPRUN=HOLD, // NOTIFY=
&SYSUID
,CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1) //* //S010 EXEC PGM=AXQRESTR,PARM=SIM //STEPLIB DD DISP=SHR,DSN=@HLQ.SAXQLOAD //AXQPRLIB DD DISP=SHR,DSN=@HLQ.SAXQPARM //* //CRITERIA DD * GROUP_NAME=GROUP2 DSN>INCLDSN1 /* //INCLDSN1 DD * ABC%.DE*.** X*.D123*.HUK /*INCLDSN1
are selected as candidates for GROUP2.Example 3://AXQRESTR JOB (ACCT1,ACCT2),'PROG.NAME',REGION=0M,TYPRUN=HOLD, // NOTIFY=
&SYSUID
,CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1) //* //S010 EXEC PGM=AXQRESTR,PARM=SIM //STEPLIB DD DISP=SHR,DSN=@HLQ.SAXQLOAD //AXQPRLIB DD DISP=SHR,DSN=@HLQ.SAXQPARM //* //CRITERIA DD * GROUP_NAME=GROUP3 VOL=300000-400000 XVOL=3A%%00 DSN=SYS*.CAT*.ONE.** DSN>INCLDSN2 XDSN=SYS*.CAT1*.ONE.** #DAYS_SINCE_CREATE=200 MIGRATION_DATE=04/19/2009-06/30/2010 /* //INCLDSN2 DD * ABC%.DE*.** X*.D123*.HUK /*3A%%00
, and have data set names that matchSYS*.CAT*.ONE.**
or match the names or patterns (or both) in parameter library memberINCLDSN2
, but do not match data set names that matchSYS*.CAT1*.ONE.**
, and have a#DAYS_SINCE_CREATE=
value of 200 and aMIGRATION_DATE=
value in the range 04/19/2009–06/30/2010 are selected as candidates for GROUP3.At a minimum, one Tier-1 statement and one Tier-2 statement must be coded for a candidate to be selected for processing.
For keywords that support value ranges, the values specified are always internally organized so that the lower of the two value specifications is compared first. For example, if
#DAYS_SINCE_CREATE=300–20
is coded, before the statement is used for comparison, it is reorganized as#DAYS_SINCE_CREATE=20–300
.To code comment statements, code an asterisk (
*
) in the first position within the statement.