Rule Definition
In a JCL, the DISP parameter of a DD card tells the system what to do with the associated data set in case of normal termination and abnormal termination. The file can be added to or removed from the catalog, passed to the next step, remove after the step execution or after the job execution... If a logical file defined in a COBOL program is linked to this data set via a DD card, then it should be used by respecting the DISP status defined in this DD card. If not, then it is possible that the program write into the file which will be removed just after the step execution. In this specific case the data will be lost and the application will have an abnormal behaviour in production.
Remediation
Check that, in the JCL, the DISP parameter of the DD card associated to the logical file is correctly set compared to the accesses made to the logical file in the program.
Related Technologies
Cobol
Technical Criterion
Architecture - Multi-Layers and Data Access
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.