View previous topic :: View next topic
|
Author |
Message |
Ramnathdude
New User
Joined: 19 Dec 2007 Posts: 7 Location: Chennai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Ramnathdude
New User
Joined: 19 Dec 2007 Posts: 7 Location: Chennai
|
|
|
|
Thanks Superk.
Regards,
Ramnath |
|
Back to top |
|
|
Ramnathdude
New User
Joined: 19 Dec 2007 Posts: 7 Location: Chennai
|
|
|
|
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 |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
Why aren't you using the scheduling software at your site? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
$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 |
|
|
Ramnathdude
New User
Joined: 19 Dec 2007 Posts: 7 Location: Chennai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Ramnathdude
New User
Joined: 19 Dec 2007 Posts: 7 Location: Chennai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
When you issue just the MVS command "S JOB,M=Myjob" from the console, does THAT process work? |
|
Back to top |
|
|
|