Page 1 of 1

CA7 JOB run on sunday only though RC = 4

PostPosted: Mon Oct 25, 2010 8:29 pm
by Upss1234
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

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

PostPosted: Mon Oct 25, 2010 9:01 pm
by NicC
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.

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

PostPosted: Mon Oct 25, 2010 9:33 pm
by Robert Sample
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.

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

PostPosted: Tue Oct 26, 2010 1:12 pm
by Upss1234
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

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

PostPosted: Tue Oct 26, 2010 3:23 pm
by NicC
Any mechanism in CA7? Yes - do as Robert suggested. Through JCL? Yes, do as I suggested as well as what Robert suggested.

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

PostPosted: Tue Oct 26, 2010 4:06 pm
by Upss1234
Thanks