When i am using these dataset as input in another job as below in the same step. when i restart job from this step , it copies the first datset but failes to open the other DATASET EFG(0) and abends. while running the complete job from top works successfully . any pointers on this for help
Suggest you learn a bit more JCL - when reading a gdg you do not need to specify the device (UNIT=CART in this case). When reading a tape you should use DISP=OLD - a tape cannot be shared. You should, probably, code BLKSIZE=0 and get a better blocksize decided by the system.
How can it be 'the same step' if it is a different job? What restart? You are far too vague. I know that Wednesday is generally psychic day but it was this morning not after lunch.
REPRO INFILE(INDD01) OUTFILE(OUTDD01)
IDC0005I NUMBER OF RECORDS PROCESSED WAS 592848
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0
REPRO INFILE(INDD02) OUTFILE(OUTDD02)
IDC3300I ERROR OPENING C8AYDG.VMPA.DSSAGTS.G3690V00
IDC3321I ** OPEN/CLOSE/EOV ABEND EXIT TAKEN
IDC0005I NUMBER OF RECORDS PROCESSED WAS 0
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12