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...
apru
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Skillset: Beginner
Referer: friends

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...

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

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

apru
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Skillset: Beginner
Referer: friends

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
Skillset: Beginner
Referer: friends

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.

NicC
Global moderator
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
Referer: Google
Location: Pushing up the daisies (almost)

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

enrico-sorichetti
Global moderator
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

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

Blackthorn
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Skillset: JCL, TWS, IBM Utilities
Referer: Found on web

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.

apru
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Skillset: Beginner
Referer: friends

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]

Blackthorn
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Skillset: JCL, TWS, IBM Utilities
Referer: Found on web

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.

apru
Posts: 34
Joined: Mon Feb 10, 2014 9:13 pm
Skillset: Beginner
Referer: friends

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)
*****************************************


  • Similar Topics
    Replies
    Views
    Last post