Schedule any JCL program at a specific time



Ask queries about other IBM Tools like Tivoli, COBTEST, Fault Analyzer, z/OS File Manager, Workload Simulator, APA, SCLM, Merge & Migration Tools etc...

Re: TWS job scheduling

Postby apru » Sat Mar 01, 2014 10:27 pm

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...
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TWS job scheduling

Postby NicC » Sun Mar 02, 2014 3:05 pm

What is
dats it r8??
mean?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: TWS job scheduling

Postby apru » Sun Mar 02, 2014 10:33 pm

I wanted to clarify if the procedure is right???
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TWS job scheduling

Postby apru » Mon Mar 03, 2014 8:33 am

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.
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TWS job scheduling

Postby NicC » Mon Mar 03, 2014 2:18 pm

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?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: TWS job scheduling

Postby enrico-sorichetti » Mon Mar 03, 2014 2:53 pm

most probably the TS is the scheduling group :mrgreen:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: TWS job scheduling

Postby Blackthorn » Mon Mar 03, 2014 3:55 pm

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.
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: TWS job scheduling

Postby 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]
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

Re: TWS job scheduling

Postby Blackthorn » Tue Mar 04, 2014 8:41 pm

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.
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: TWS job scheduling

Postby apru » Wed Mar 05, 2014 4:07 pm

The parameters of the AROPTS parameter are as follows:

AROPTS AUTHUSER(JCLUSER)
ENDTIME(2359)
EXCLUDECC(NOAR)
EXCLUDERC(6)
PREDWS(*)
STARTTIME(0000)
USERREQ(NO)
*****************************************
apru
 
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Has thanked: 1 time
Been thanked: 0 time

PreviousNext

Return to Other IBM Tools

 


  • Related topics
    Replies
    Views
    Last post