search cancel

ACFRULCU JCL hangs when ran against active ACF2 databases

book

Article ID: 216089

calendar_today

Updated On:

Products

ACF2 ACF2 - MISC ACF2 - z/OS Cleanup

Issue/Introduction

When attempting to run the ACFRULCU JCL using the active ACF2 databases, the job sits and waits. It will not stop and fail until the job is purged. How can the ACFRULCU job be successfully ran against the active ACF2 databases?

Sample JCL being used:
//CLEANUP  EXEC PGM=ACFRULCU
//LOGONIDS DD DSN=PRIMARY.ACF.LOGONIDS,DISP=SHR
//RULES    DD DSN=PRIMARY.ACF.RULES,DISP=SHR              
//INFOSTG  DD DSN=PRIMARY.ACF.INFOSTG,DISP=SHR                      
//SYSPRINT DD SYSOUT=*                                 
//SYSOUT   DD DSN=SAMPLE.ACFRULCU.OUTPUT,     
//            DISP=(,CATLG),SPACE=(CYL,(1,1),RLSE),    
//            DCB=(RECFM=FB,LRECL=80,BLKSIZE=3120),    
//            UNIT=PROD                                
//SYSIN    DD *
 ACF2
UIDNXIST
/*

Resolution

The RULES, INFOSTG, and LOGONIDS DDs in the JCL should only be specified if you are using the ACF2 alternate databases to run the report. When running the report against the active databases by specifying ACF2 in the SYSIN DD, these DDs must be removed or specify DUMMY. If they are not removed, the ACFRULCU job will attempt to access the data sets, receive an RC 4, and will wait for the datasets to become available. The job output will look like this:

IEF861I FOLLOWING RESERVED DATA SET NAMES UNAVAILABLE TO ACFRULCU   
IEF863I DSN = PRIMARY.ACF.LOGONIDS ACFRULCU RC = 04 RSN = 00000000
IEF863I DSN = PRIMARY.ACF.RULES ACFRULCU RC = 04 RSN = 00000000 
IEF863I DSN = PRIMARY.ACF.INFOSTG ACFRULCU RC = 04 RSN = 00000000
*IEF099I JOB ACFRULCU WAITING FOR DATA SETS