How to resolve user variables temporarily prior to JCLCheck validation
search cancel

How to resolve user variables temporarily prior to JCLCheck validation

book

Article ID: 24503

calendar_today

Updated On:

Products

JCLCheck Workload Automation

Issue/Introduction

How to resolve/substitute user-defined variables before JCL validation takes place?

 

 

Environment

Release: All
Component: JCLCheck Workload Automation

Resolution

Use JCLCheck runtime option CHANGE to request that JCLCheck substitute variables before JCL validation takes place.

Example:  CHANGE=(JCL,hlq.variables.list)

Create a sequential file named "hlq.variables.list".  Sample content:

* THIS IS A COMMENT STATEMENT  
CHANGE (?%)=(MM)
CHANGE (!%)=(YY)
CHANGE (TEST.)=(PROD.)

When JCLCheck is executed, each JCL statement is examined against the table in data set "hlq.variables.list".  If a match is found, the 'from' data string is converted to the 'to' data string.  After the conversion completes, the JCL validation takes place.  The changes are temporary, and the input JCL member is unaffected. 

If variable substitution needs to be done for both the inline control statements and JCL statements, use CHANGE=(BOTH,hlq.variables.list)

If variable substitution is needed only for inline control statements, use CHANGE=(CTL,hlq.variables.list).

 

Additional Information

The CHANGE runtime option is documented here: 

CHANGE