A dataset name with DISP=OLD gets JCLCheck security violation error:
CAY6321E SECURITY VIOLATION DETECTED "DATASET ACCESS LEVEL=UPDATE".
The dataset is used only for READ access, and the batch acid has READ access.
JCLCheck does not issue an error if the JCL is changed to DISP=SHR for the same dataset.
Release : 12.0
Component : JCLCheck workload Automation
Use DISP=SHR since the dataset is used only for READ access, and the batch acid has READ access.
JCLCheck runtime options:
- SECurity(SHRupd): Performs a security check for ACCESS=UPDATE on DISP=SHR data set
- SECurity(NOSHRupd): Performs a security check for ACCESS=READ on DISP=SHR data set. Use this option if the program only reads the file.
Reference: