IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To run the JCL at particular time in a day regularily


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudha

New User


Joined: 16 Aug 2004
Posts: 7

PostPosted: Mon Aug 16, 2004 9:54 pm
Reply with quote

hi,

i want my jcl to run at particular time in a day regularily. how can i achieve that.


thankyou,
bye
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Aug 16, 2004 11:59 pm
Reply with quote

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
View user's profile Send private message
sandip_datta

Active User


Joined: 02 Dec 2003
Posts: 150
Location: Tokyo, Japan

PostPosted: Tue Aug 17, 2004 6:55 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Aug 17, 2004 5:41 pm
Reply with quote

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
View user's profile Send private message
Ayyappan

New User


Joined: 05 Jul 2005
Posts: 31
Location: India

PostPosted: Thu Feb 23, 2006 11:19 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Feb 23, 2006 7:51 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top