MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

To run the JCL at particular time in a day

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Mon Feb 02, 2009 2:28 am    Post subject: To run the JCL at particular time in a day Reply with quote

Hi All,

Is there anyway that we can create a job which will run an another job at paticular time.

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


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Feb 02, 2009 4:44 am    Post subject: Reply with quote

No. A Job Scheduling system needs to be involved in order to do this.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Mon Feb 02, 2009 11:27 am    Post subject: Re: To run the JCL at particular time in a day Reply with quote

sivafdms wrote:
Hi All,

Is there anyway that we can create a job which will run an another job at paticular time.

Thanks,
Siva


Sivafdms,

If your shop has JES3 lookup the parm DEADLINE

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Wed Feb 11, 2009 4:45 am    Post subject: Reply with quote

Kolusu,

I have put this //*MAIN DEADLINE=(0433,B,110208) in my jcl so that should start exceuting i the job on 11th FEb 09 at 4:33 AM EST . But when i submit the job it completed right away after submitting the job.

Code:

//*MAIN DEADLINE=(0433,B,110208)                               
//*                                                             
//JSTY0010 EXEC PGM=ICETOOL,REGION=1024K                       
//TOOLMSG   DD SYSOUT=*                                         
//SSMSG     DD SYSOUT=*                                         
//SYSPRINT  DD SYSOUT=*                                         
//SORTIN    DD DSN=X.Y.Z,
//             DISP=SHR                                         
//TOOLIN    DD *                                               
  COUNT FROM(SORTIN)                                           
/*                                                             



please help me

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


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Feb 11, 2009 6:08 am    Post subject: Reply with quote

That's NOT what the DEADLINE parameter does.

DEADLINE specifies when the job is required. It has nothing to do with when it's actually started.
Back to top
View user's profile Send private message
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Wed Feb 11, 2009 9:12 am    Post subject: Reply with quote

Superk,

how can i accomplish my task?

Thanks,
Siva
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Feb 11, 2009 9:32 am    Post subject: Reply with quote

sivafdms wrote:
Kolusu,

I have put this //*MAIN DEADLINE=(0433,B,110208) in my jcl so that should start exceuting i the job on 11th FEb 09 at 4:33 AM EST . But when i submit the job it completed right away after submitting the job.


Sivafdms,

You are in 2009. Your deadline parm is referring to 11th feb 2008. Also remember that Deadline parm is only valid on JES3 and JES2 doesn't have anything similar to it.

Superk,

I am not sure where got the info about DEADLINE parm but Deadline scheduling is indeed a method of scheduling jobs by time of day, or by week, month, or year.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sivafdms
Intermediate


Joined: 29 May 2007
Posts: 165
Topics: 77

PostPosted: Wed Feb 11, 2009 10:41 pm    Post subject: Reply with quote

kolusu,

Thanks for pointing out the mistake. Today i have tried //*MAIN DEADLINE=(2130,F,110209). even then the job didnot wait for that time.

Could you please tell me how can i determine that my shop supports JES3/JES2 ?


Thanks,
Siva
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Thu Feb 12, 2009 2:19 am    Post subject: Reply with quote

When you open a job in SDSF the very fisrt line of the display that comes up for me is

Code:

                   J E S 2  J O B  L O G  --  S Y S T E M  xxxx  --


bonk
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Fri Feb 13, 2009 12:40 am    Post subject: Reply with quote

Wouldn't a JES3 statement give you a JCL error in a JES2 shop and vice versa?
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sat Mar 07, 2009 8:53 pm    Post subject: Reply with quote

Don't JES cntl cards begin with "/*"? E.G.: /*MAIN DEADLINE=(0433,B,110208)

Siva, give that a try.
_________________
Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Sun Mar 08, 2009 2:26 pm    Post subject: Reply with quote

//* is JES3, /* is JES2
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group