CA7 JOB run on sunday only though RC = 4

Unicenter CA-7 Job Management: CA's workload automation tool for managing, visualizing, automating, optimizing applications
Upss1234
Posts: 3
Joined: Mon Oct 25, 2010 8:12 pm
Skillset: COBOL, JCL, VSAM , DB2
Referer: google

CA7 JOB run on sunday only though RC = 4

Postby Upss1234 » Mon Oct 25, 2010 8:29 pm

Hi,

Requirement is CA7 daily job should run on sunday though RC = 4 without showing any error.
On other day it should abend if RC = 4.

How we can do it in CA7 or in JCL.

Regards,
Upss1234

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: CA7 JOB run on sunday only though RC = 4

Postby NicC » Mon Oct 25, 2010 9:01 pm

Get your terminology right first - CA7 is a scheduling system that submits jobs, amongst other things. Jobs consist of JCL and maybe control 'cards'.

If CA7 is like OPC (OPCA TWS whatever) then you just add the job to a Sunday only calendar. If a return code of 4 is not to be treated by CA7 as an error then you would need a separate job from your normal daily job. The Sunday job would execute an IEFBR14 as the last step or provide some other mechanism to convert your RC of 4 to an RC of 0.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: CA7 JOB run on sunday only though RC = 4

Postby Robert Sample » Mon Oct 25, 2010 9:33 pm

I don't do enough CA-7 scheduling to know for sure, but you should be able to set the job up with two sched ids -- one for Sunday, one for the rest of the week. The Sunday sched id can be set to accept return code 0004 as okay while the other sched id would not accept 0004 return code as okay.

Upss1234
Posts: 3
Joined: Mon Oct 25, 2010 8:12 pm
Skillset: COBOL, JCL, VSAM , DB2
Referer: google

Re: CA7 JOB run on sunday only though RC = 4

Postby Upss1234 » Tue Oct 26, 2010 1:12 pm

Thanks NinC, Robert.

That is one way but need to reshedule and SCHID changes.
any other way through which we can achieve without any SCHID changes. Can achieve Through JCL code changes or any mechanisam in CA7??

Regards,
Upss1234

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: CA7 JOB run on sunday only though RC = 4

Postby NicC » Tue Oct 26, 2010 3:23 pm

Any mechanism in CA7? Yes - do as Robert suggested. Through JCL? Yes, do as I suggested as well as what Robert suggested.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

Upss1234
Posts: 3
Joined: Mon Oct 25, 2010 8:12 pm
Skillset: COBOL, JCL, VSAM , DB2
Referer: google

Re: CA7 JOB run on sunday only though RC = 4

Postby Upss1234 » Tue Oct 26, 2010 4:06 pm

Thanks