How to capture RUNDATE in JCL?

CA-7 Job Management and CA's Workload Automation Restart & Tracking Tool CA-11, CA-ADC2, CA-Manager, CA-Jobtrac, CA-ESP (formerly Cybermation), ASG-ZEKE, ASG-Workload Scheduler (formerly BETA42),BMC Control-M, IBM Tivoli Workload Scheduler (TWS, formerly OPC, OPC/A, OPC/ESA, Maestro) JES3 DPC (Dependent Job Control)
Post Reply
Kanika
Registered Member
Posts: 21
Joined: Sat Jul 13, 2013 6:31 pm

How to capture RUNDATE in JCL?

Post by Kanika »

Hi,

I have a JCL which would be invoked by the CA-7 scheduler.I'm trying to get the the RUNDATE and TIME information when CA-7 submits the Job.

Is this doable?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to capture RUNDATE in JCL?

Post by Robert Sample »

Look at the CA-7 Interfaces manual and in particular at the CA-7 Driver functionality. CA-7 Driver allows you extensive date processing functionality in your scheduled jobs. Note, however, that submitting such a job from TSO or batch internal reader requires manual changes before the job will pass the JES converter / interpreter.
Kanika
Registered Member
Posts: 21
Joined: Sat Jul 13, 2013 6:31 pm

Re: How to capture RUNDATE in JCL?

Post by Kanika »

Thanks Robert.

I'm exploring the options for CA-7, as you've suggested and in touch with the scheduling team.

I was just thinking if such a thing can be done by some utility program also, to get the RUNDATE?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How to capture RUNDATE in JCL?

Post by Robert Sample »

Sort allows you to use the date; or, a program written in the language of your choice will allow you to access the date.

However, one thing you need to consider: what is RUN DATE? Example: the job is scheduled in CA-7 to be submitted at 11:55 PM. Even though the job is submitted and eligible to run, there are no initiators for the job class available so the job does not start running until 12:05 AM. What is the RUN DATE in this case -- the date the job was read in, or the date the job actually started executing? For long-running jobs or jobs that start executing before midnight and complete execution after midnight, the end date could be different from the date the job started executing, too. SMF records when the job was read into the system, when the job was processed through the JES converter / interpreter, and when the job actually started executing -- so just for start time you have at least 3 different choices.
Kanika
Registered Member
Posts: 21
Joined: Sat Jul 13, 2013 6:31 pm

Re: How to capture RUNDATE in JCL?

Post by Kanika »

Thanks Robert.

We're thinking to a file with a date in it and this will be considered as run-date. As of now when the Job is submitted is treated as run-date. Thanks again for your insight on this.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: How to capture RUNDATE in JCL?

Post by William Collins »

Kanika,

That is a good way to go. You can also put a bit more into it, like have "yesterday" and "tommorow" and "last working day of the week", etc, etc. Cycle the file round from one "run" to the next. Maintain the file automatically as the first thing the "batch" does. Have a screen/something for formal manual update (with logging) of anything if ever required. The all the "date processing" is in one place, and any programatic use of a date just has to use the correct one from the run-date-control-file.
Kanika
Registered Member
Posts: 21
Joined: Sat Jul 13, 2013 6:31 pm

Re: How to capture RUNDATE in JCL?

Post by Kanika »

Thanks William - we're working on the same lines. Hopefully we'll roll out this all soon.

Thanks for your comments,
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Scheduling Software for MVS, OS/390 and zOS”