JCLCHECK Forground execution ALLOC FI(&TYPE) DA('&THEPRFX..JCLCHECK.&TYPE') fails with A RECURSIVE CLIST ERROR

Document ID : KB000103425
Last Modified Date : 27/06/2018
Show Technical Document Details
Issue:

CA JCLCHECK provides a TSO/ISPF Interface that is documented in the Best Practice Guide topic 'Using the ISPF Panel Interface'. 
The CA JCLCheck ISPF panels interface lets you perform many functions ranging from a single JCL check to an entire PDS, or batch mode processing. The panels also include a JCLNeat option to reformat your JCL to your shop standards.

It can happen that during a foreground invocation of CA JCLCheck , the following error is got:

 ALLOC FI(&TYPE) DA('&THEPRFX..JCLCHECK.&TYPE') &DSP CATALOG USING(&SUBST R(1:5,&TYPE)) &REUSE
THIS STATEMENT HAS CAUSED A RECURSIVE CLIST ERROR

Is it possible to bypass it and how?

 

Environment:
Z/OS - TSO/ISPF - JCLCheck 
Resolution:
This error could occur when the TSO Userid (&SYSUID)  is different from the TSO Prefix (&SYSPREF) 

So, it can be necessary to modify as follows the JCKSPF2 clist used in this interface: 

- Locate the statement :

SET &THEPRFX = &SYSPREF 

- Change it to :

SET &THEPRFX = &str(&syspref..&sysuid) 

If the error is not solved with this suggestion, Please open a Case with CA Support.