Page 3 of 5

Re: TWS job scheduling

PostPosted: Sat Mar 01, 2014 10:27 pm
by apru
Thanks a lot blackhorn....I wil try to implement this using automatic recovery statements in my job...for using automatic recovery statements ,we have to activate using option 9 from main menu and insert OPC recover statement between JOB and EXEC statements ..dats it r8??..sorry for troubling u again...

Re: TWS job scheduling

PostPosted: Sun Mar 02, 2014 3:05 pm
by NicC
What is
dats it r8??
mean?

Re: TWS job scheduling

PostPosted: Sun Mar 02, 2014 10:33 pm
by apru
I wanted to clarify if the procedure is right???

Re: TWS job scheduling

PostPosted: Mon Mar 03, 2014 8:33 am
by apru
I want to copy the error information from spool to dataset when a job scheduled using OPC ends in error.i just wanted to know if the below automatic recovery statement will serve my purpose..

//*%OPC RECOVER RESTART=N,ADDAPPL=SPL

where SPL is an application which has an operation to copy the error information from spool to dataset.Should I add any selection parameters (errstep/jobcode/stepcode) to the above staement.I want automatic recovery for any error in the job.

Re: TWS job scheduling

PostPosted: Mon Mar 03, 2014 2:18 pm
by NicC
Why are you asking here and not your scheduling group who should have been trained in all this and can quickly give you the answer while you stand at their desks? Or over the phone?

Re: TWS job scheduling

PostPosted: Mon Mar 03, 2014 2:53 pm
by enrico-sorichetti
most probably the TS is the scheduling group :mrgreen:

Re: TWS job scheduling

PostPosted: Mon Mar 03, 2014 3:55 pm
by Blackthorn
apru wrote:for using automatic recovery statements ,we have to activate using option 9 from main menu


That's only required if you don't have the RECOVERY(YES) parameter specified on the OPCOPTS statement. Otherwise there is no need to activate it using option 9.

Re: TWS job scheduling

PostPosted: Mon Mar 03, 2014 10:28 pm
by apru
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]

Re: TWS job scheduling

PostPosted: Tue Mar 04, 2014 8:41 pm
by Blackthorn
Check what setting you have specified on the AROPTS initialisation parameter, in particular EXCLUDECC and EXCLUDERC.

By default, JCL errors are excluded from automatic recovery.

Re: TWS job scheduling

PostPosted: Wed Mar 05, 2014 4:07 pm
by apru
The parameters of the AROPTS parameter are as follows:

AROPTS AUTHUSER(JCLUSER)
ENDTIME(2359)
EXCLUDECC(NOAR)
EXCLUDERC(6)
PREDWS(*)
STARTTIME(0000)
USERREQ(NO)
*****************************************