My JCL executes a program to read a VSAM file. Who ever devloped the code did not check the VSAM Staus after Opening the file. After read only they are checking whether READ is success or not.
I am getting VSAM status 47, i knew that READ has been tried on a file which is not opened in Input or I-O mode. But i could able to see the file Open statement (I-O Mode) in program before the READ.
I appreciate if some one could throw some information on this?
Unfortunately i dont have permission to edit the program and recompile it. The dataset i wanted to read is accessed by many programs. Is it causing any issues?
Joined: 06 Jun 2008 Posts: 4260 Location: Atlanta, GA
Possibly -- if you've got DISP=SHR specified and attempt to open the file I-O, I'm not sure what file status code would be generated. Try running with DISP=OLD and I think the read 47 file status will go away.
I also recommend you get somebody to add the OPEN file status check to the code and recompile it since it really should be done sooner or later.