Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to run a job at regular intervals?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Ramnathdude

New User


Joined: 19 Dec 2007
Posts: 7
Location: Chennai

PostPosted: Thu Jan 03, 2008 10:31 am    Post subject: How to run a job at regular intervals?
Reply with quote

Hi,
could some one tell me how to submit a job in the background at regular intervals.

thanks in advance.

Regards,
Ramnath
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Thu Jan 03, 2008 11:00 am    Post subject: Reply to: How to run a job at regular intervals?
Reply with quote

Check these previous topics for the same subject:

http://ibmmainframes.com/viewtopic.php?t=26572
http://ibmmainframes.com/viewtopic.php?t=24456
http://ibmmainframes.com/viewtopic.php?t=927
Back to top
View user's profile Send private message
Ramnathdude

New User


Joined: 19 Dec 2007
Posts: 7
Location: Chennai

PostPosted: Thu Jan 03, 2008 12:11 pm    Post subject:
Reply with quote

Thanks Superk.

Regards,
Ramnath
Back to top
View user's profile Send private message
Ramnathdude

New User


Joined: 19 Dec 2007
Posts: 7
Location: Chennai

PostPosted: Thu Jan 03, 2008 1:22 pm    Post subject:
Reply with quote

Hi,
am facing a problem, like when i submit my INTRDR job, it never triggers the necessary job at the time interval which I have specified.

please find the code jcl

//JOBNAME JOB ('ABCD'),MSGCLASS=O,NOTIFY=&SYSUID
//****************************************************
//STEP002 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=DSNNAME,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//*

In the dataset mentioned I have specified the time parameters at which the job should be submitted as given below

/*$TA,I=300,'$VS,"S JOB,M=Myjob"'

but "Myjob" never gets triggered at the specified time interval...

Can any one please clarify?

Thanks in advance

Regards,
Ramnath
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Jan 03, 2008 6:01 pm    Post subject:
Reply with quote

Why aren't you using the scheduling software at your site?
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Thu Jan 03, 2008 6:39 pm    Post subject: Reply to: How to run a job at regular intervals?
Reply with quote

$TA,I=300,'$VS,"S JOB,M=Myjob"'

OK, let's break down your JES2 command:

$T A - Display, specify, and modify automatic commands.
,I=300 The time interval, in seconds, at which the specified command(s) are repeated.
$VS - Enter MVS system commands through JES2.
"S JOB,M=Myjob" the MVS system command you're entering through JES2. This would mean that you are starting a system task named JOB and passing the parameter M=MYJOB.

Do you actually have available a system task named JOB?
Back to top
View user's profile Send private message
Ramnathdude

New User


Joined: 19 Dec 2007
Posts: 7
Location: Chennai

PostPosted: Fri Jan 04, 2008 11:52 am    Post subject:
Reply with quote

hi Superk,

As you said I have a member in the same PDS named as job, so the command "S JOB,M=Myjob" should trigger the job inside that member right??

Thanks,
Ramnath.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Fri Jan 04, 2008 12:13 pm    Post subject: Reply to: How to run a job at regular intervals?
Reply with quote

If you could post the JCL for the JOB STC, I could probably be able to tell a little better. My gut feeling is that it should look something like this:
Code:

//JOB PROC M=
//SUBMIT EXEC PGM=IEBGENER
//STEPLIB DD DSN=SYS1.LINKLIB,VOL=SER=XXXX,DISP=SHR
//SYSUT1 DD DSN=SOME.PDS(&M),VOL=SER=XXXX,DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=A
Back to top
View user's profile Send private message
Ramnathdude

New User


Joined: 19 Dec 2007
Posts: 7
Location: Chennai

PostPosted: Fri Jan 04, 2008 2:40 pm    Post subject:
Reply with quote

Hi Superk,

Please find my JCL below

//STEP002 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=DSNNAME,DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//JOB PROC M
// PEND

the job gives no errors but never triggers the mentioned job after the specified time interval.

Thanks,
Ramnath
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Fri Jan 04, 2008 4:59 pm    Post subject: Reply to: How to run a job at regular intervals?
Reply with quote

When you issue just the MVS command "S JOB,M=Myjob" from the console, does THAT process work?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Job openings at Accenture for Regular... Pandora-Box Mainframe Jobs 0 Sun Mar 23, 2014 10:47 am
No new posts Moving data from regular tape dateset... vinodkumar_pallampati JCL & VSAM 6 Thu Sep 05, 2013 10:32 am
No new posts Batch job to issue commands at regula... mymf doubts CLIST & REXX 18 Wed Oct 03, 2012 6:04 pm
No new posts Regular Expressions in COBOL purusothaman COBOL Programming 4 Thu Feb 03, 2011 6:40 pm
No new posts sending an email whose body contains ... Ajay Baghel All Other Mainframe Topics 9 Tue Sep 01, 2009 9:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us