View previous topic :: View next topic
|
Author |
Message |
sudha
New User
Joined: 16 Aug 2004 Posts: 7
|
|
|
|
hi,
i want my jcl to run at particular time in a day regularily. how can i achieve that.
thankyou,
bye |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
1. Setup your job in the production job scheduling system.
2. Use the JES2 "Set Automatic Command" facility:
$TA,T=hh.mm,i=nnn,'$VS,''S JOB,N=myjob'''
where "T=hh.mm" is the time you want to submit the job, "i=nnn" is the amount of time (in seconds) to wait before repeating the command, and the rest is the JES2 command to be issued. You can find out more about the "$TA" and "$VS" commans in the "JES2 Commands Reference Manuals".
3. Modification of #2. Submit your job with "TYPRUN=HOLD". Then, use the "$TA" JES2 command to schedule a command to release your job at a specified time (the "$A" command). Of course, your job would then have to reload itself with the "TYPRUN=HOLD" enabled for the next runtime.
4. On a Netview console, setup an "EVERY" timer event to submit your job, i.e. "EVERY 24:00,SUBMIT 'MY.JCL(MYJOB)' ". |
|
Back to top |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
Kelvin,
I am sorry that I didn't notice your reply.
I am confused because the Sudha had posted twice. I have answered in the second post but your explanation is more elaborate.
Again I am sorry for this confusion. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
No problem.
It would be nice to see the forum moderators take care of duplicate postings. Seems like there's always a lot. |
|
Back to top |
|
|
Ayyappan
New User
Joined: 05 Jul 2005 Posts: 31 Location: India
|
|
|
|
Hi superK,
Could you please explain me how and from where i can issue JES2 commands. Sorry i don't know anything about JES2 commands.
Thanks.
Ayyappan |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
JES2 commands are entered into the MVS system through the system console.
Alternatively, they can be entered into the MVS system by software that emulates a console (i.e. Netview, Auto Operator tools, Job Schedulers).
Also, since batch processing is in direct communication with the JES2 subsystem, commands can be entered via the JCL COMMAND parameter. |
|
Back to top |
|
|
|