In my COBOL program, I open a VSAM file in I-O mode to update records at some condition(s).
In my JCL am using DISP=MOD. When the Job runs for the first time, I am defining the VSAM file using IDCAMS.
But it fails to open the file in I/O mode.When I add records to newly defined file and then empty it , Job runs fine.
Hope I have expalined the problem.