How to handle VSAM status code in JCL itself?
Posted: Wed Mar 23, 2016 7:51 am
Hi,
In one of the COBOL programs, it reads a VSAM dataset. When the file is empty program ends with a VSAM status code. The file is opened in INPUT or I-O mode. I see STAYS code handling in COBOL program but I do not want to handle it in program rather in a JCL. Can I do that? Can you please suggest any way using that VSAM file can be checked if it is empty or not?
In one of the COBOL programs, it reads a VSAM dataset. When the file is empty program ends with a VSAM status code. The file is opened in INPUT or I-O mode. I see STAYS code handling in COBOL program but I do not want to handle it in program rather in a JCL. Can I do that? Can you please suggest any way using that VSAM file can be checked if it is empty or not?