Disable dataset existence checking when DD has a specific UNIT=xxxx
search cancel

Disable dataset existence checking when DD has a specific UNIT=xxxx

book

Article ID: 263006

calendar_today

Updated On:

Products

JCLCheck Workload Automation

Issue/Introduction

How to bypass dataset existence checking and not to issue error messages when a UNIT=TAPE is specified? 

Error messages are :

CAY6079E  DATA SET 'dataset' SPECIFIED AS OLD OR SHR,BUT CANNOT BE FOUND  
CAY6081E  DISP OF CATLG INVALID FOR 'dataset' - DATA SET ALREADY CATALOGED    

Resolution

1. Use the Error exit CAZ1XERR in the CAZ2SRC library.

The UNIT name in CAZ1XERR can be found by referring to XJBDUNMX in $JCLXJB.

XJBDUNMX DS    CL8                 UNIT NAME 

If the target UNIT is "TAPE", the message can be suppressed by setting 4 to R15 when the UNIT name matches "TAPE".

Example:

CLC   =C'TAPE',XJBDUNMX 
LA    R15,4

2. Use the REXX MSG_PROCESSING routine: check for UNIT=TAPE and suppress CAY6079 + CAY6081.  This is the recommended method.  A sample REXX program named CAZ1REXX is located in the CAZ2CLS0 library.