Previous Topic: Parameter DefinitionsNext Topic: CTSPMTST Report Field Definitions


JCL Considerations

SYSPATT DD

Points to one or more patterns used in processing the action requested with the verb parameter.

SYSOBJ DD

When the COMPARE verb is specified, this DD defines one or more patterns which are compared to the patterns defined in SYSPATT to determine which patterns are more specific.

When the MATCH verb is specified, this DD specifies a list of objects to be matched to the patterns specified in the SYSPATT DD. Each object specified in the SYSOBJ DD is compared to each pattern specified in the SYSPATT DD.

This DD is not used when the VALIDATE verb is specified. It is ignored if provided.

Example 1

The EDM rules defined in CTOEDMxx permit the specification of job names, DD names, program names or data set names to identify which EDM is to be assigned. If you plan to use job names to assign the EDM and would like to test the match processing before implementing the rules, execute CTSPMTST with the MATCH,MVSJOB parameter as in the following example.

Note: If program name or DD statement were to be tested that the MATCH,MVSJOB parameter would also be used.

//STEP1 EXEC PGM=CTSPMTST,PARM='MATCH,MVSJOB'
//STEPLIB DD DSN=CAI.CTAPLINK,DISP=SHR
//SYSPRINT DD SYSOUT=A
//SYSPATT DD *
MFG!!###
/*
//SYSOBJ DD *
MFGAA000
MFGA000
MFGAA00
MFGZZ000
MFGZZ999

Each test job name specified in the SYSOBJ DD is compared to the pattern specified in the SYSPATT DD and the results of the match are reported. The results of executing this job are displayed in Sample Output - Example 1.

Sample Output - Example 1

PARM: MATCH,MVSFILE
 PATTERN/OBJECT     RESULT FEED BACK MESSAGE
PATTERN: MFG!!###   NORMAL PM00-00: NORMAL COMPLETION
OBJECT: MFGAA000
PATTERN: MFG!!###   NOMATCH PM04-00: PATTERN AND OBJECT DO NOT MATCH
OBJECT: MFGA000
PATTERN: MFG!!###   NOMATCH PM04-00: PATTERN AND OBJECT DO NOT MATCH
OBJECT: MFGAA00
PATTERN: MFG!!###   NORMAL PM00-00: NORMAL COMPLETION
OBJECT: MFGZZ000
PATTERN: MFG!!###   NORMAL PM00-00: NORMAL COMPLETION
OBJECT: MFGZZ999

Example 2

The CTSPMTST program may be used to test data set selection processing by specifying test vault patterns in the SYSPATT DD and test data set names in the SYSOBJ DD as in the following example.

//STEP1 EXEC PGM=CTSPMTST,PARM='MATCH,MVSFILE'
//STEPLIB DD DSN=CAI.CTAPLINK,DISP=SHR
//SYSPRINT DD SYSOUT=A
//SYSPATT DD *
ABC*.LEVEL2
ABC*.LEVEL#
/*
//SYSOBJ DD *
ABCDEF.LEVEL3
ABCDEF.LEVEL2
ABCDEF.LEVEL2.ABC
ABC.NOTHING
/*
//

The results of executing this job are displayed in the Sample Output - Example 2.

Sample Output - Example 2