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

How to run a job at regular intervals?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Thu Jan 03, 2008 11:00 am
Reply with quote

Check these previous topics for the same subject:

ibmmainframes.com/viewtopic.php?t=26572
ibmmainframes.com/viewtopic.php?t=24456
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
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
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
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

Global Moderator


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

PostPosted: Thu Jan 03, 2008 6:39 pm
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
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

Global Moderator


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

PostPosted: Fri Jan 04, 2008 12:13 pm
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
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

Global Moderator


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

PostPosted: Fri Jan 04, 2008 4:59 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Search string in job at regular Spool... CLIST & REXX 0
This topic is locked: you cannot edit posts or make replies. Job openings at Accenture for Regular... Mainframe Jobs 0
No new posts Moving data from regular tape dateset... JCL & VSAM 6
No new posts Batch job to issue commands at regula... CLIST & REXX 18
No new posts Regular Expressions in COBOL COBOL Programming 4
Search our Forums:

Back to Top