How to add the LIBDEF statements to JCLCheck CLIST EJCK
search cancel

How to add the LIBDEF statements to JCLCheck CLIST EJCK

book

Article ID: 210321

calendar_today

Updated On:

Products

JCLCheck Workload Automation

Issue/Introduction

Need to add LIBDEF statements to the JCLCheck CLIST EJCK instead of using the TSO logon proc to define the JCLCheck libraries.

Environment

Release : 12.0

Component : JCLCheck Workload Automation

Resolution

Clist EJCK is found in the JCLCheck CAZ2CLS0 library. 

1. Add the following statements before "ISPEXEC SELECT PGM(CAZ2LEVL)":

 SET CAICLIB = &STR('HLQ.CAZ2CLS0')               
 SET CAIISPP = &STR('HLQ.CAZ2PNL0')               
 SET CAIISPT = &STR('HLQ.CAZ2TBL0')               
 SET CAIISPM = &STR('HLQ.CAZ2MSG0')               
 SET CAIISPS = &STR('HLQ.CAZ2SKL0')               
 SET EDCHKDD = &STR('HLQ.EDCHKDD')                
                                                  
 ALTLIB ACTIVATE APPLICATION(CLIST) DA(&CAICLIB)  
                                                  
 ISPEXEC LIBDEF ISPPLIB DATASET ID(&CAIISPP)      
 ISPEXEC LIBDEF ISPTLIB DATASET ID(&CAIISPT)      
 ISPEXEC LIBDEF ISPMLIB DATASET ID(&CAIISPM)      
 ISPEXEC LIBDEF ISPSLIB DATASET ID(&CAIISPS)      
 ALLOC FI(EDCHKDD) DA(&EDCHKDD) SHR               

2. Add the following statements before "EXIT":

ISPEXEC LIBDEF ISPPLIB              
ISPEXEC LIBDEF ISPTLIB              
ISPEXEC LIBDEF ISPMLIB              
ISPEXEC LIBDEF ISPSLIB              
ISPEXEC LIBDEF EDCHKDD              
FREE FI(EDCHKDD)                    
ALTLIB DEACTIVATE APPLICATION(CLIST)