by apru » Mon Mar 03, 2014 10:28 pm
Thanks a lot blackhorn.....
I want to copy the error information from spool to dataset when a job scheduled using OPC ends in error.
I inserted the below automatic recovery statement between JOB and EXEC in 2 scenatios.
1.A Program gives JCL error(duplicate dataset)
//*%OPC RECOVER RESTART=N,ADDAPPL=SPL
where SPL is an application which has an operation to copy the error information from spool to dataset.
2.A Program ends with Maxcc=16(sort utility->different ddname instead of sortout)
//*%OPC RECOVER STEPCODE=16,RESTART=N,ADDAPPL=SPL..
But in both the cases,I am getting the error "no automatic recovery because recover statement does not match this error"..
Please can you help me? [edited - shouting removed]