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 

Time Parameter

 
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
Phaninder
Beginner


Joined: 06 Jul 2005
Posts: 27
Topics: 11

PostPosted: Wed Dec 07, 2005 9:21 am    Post subject: Time Parameter Reply with quote

Hi All,
I have a query please help me if possible, I have job which takes more than 60 mins of CPU time, This goes down with S322 after running for 3 hrs, Now if TIME=1440 is coded the job goes perfectly fine,
I wanted to know is there any diadvantage in doing it, I mean if i code it permanently.
If possible please let me know the advantages and disadvantages of coding the time parameter.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Dec 07, 2005 9:26 am    Post subject: Reply with quote

We like to enforce time limits for programmer development work, just in case a program starts looping. Most of our production work runs with 1440 (set by JES2 job class definitions).
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Wed Dec 07, 2005 9:54 am    Post subject: Reply with quote

A job taking more than 60 minutes of CPU time is a very long job. Just be sure it's working correctly. Bill's philosophy is perfectly reasonable.
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed Dec 07, 2005 11:12 am    Post subject: Reply with quote

Phaninder,
You may also check the CLASS, which generally has pre-defined time limits in a production system.
Back to top
View user's profile Send private message
Phaninder
Beginner


Joined: 06 Jul 2005
Posts: 27
Topics: 11

PostPosted: Thu Dec 08, 2005 10:13 am    Post subject: Reply with quote

Bill/Mervyn/suresh
Thanks a lot for your response, I would be pleaseg if give me some links regarding the descripition of time parameter.

Hi kolusu,
Please throw some light on this if possible.
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: Thu Dec 08, 2005 10:18 am    Post subject: Reply with quote

Quote:

Bill/Mervyn/suresh
Thanks a lot for your response, I would be pleaseg if give me some links regarding the descripition of time parameter.

Hi kolusu,
Please throw some light on this if possible.

Phaninder,

Click on the "Quick Manuals" on top of this page. It will open a new window and from there select " Z/OS V1R4.0 MVS JCL Reference" manual and read the section 20.26 which will answer all your queries.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
saro
Beginner


Joined: 20 Aug 2005
Posts: 11
Topics: 1
Location: chennai

PostPosted: Sat Dec 31, 2005 4:25 am    Post subject: Reply with quote

Kolusu,

I have a couple of questions..?

My requirement is to submit a job daily at a particular time.

1)is it possible to submit a job at a particular time without using rexx execs..?


My trials..

//LASTSTP EXEC PGM=IKJEFT01,COND=(0,NE)
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=D
//SYSTSIN DD *
SUB 'AFW34R.TSO.JCL(AUTOTE)'

i try to put a job into a loop by adding the above mentioned step at end of job, and a rexx exec inbetween to valuate the time and perform what i needed.
This above step will submit the same job again and again.
The rexx inbetween will have a "submit" command to TRIGGER my actual job.

Is this a good logic..? if not .... "is there a way to avoid repeated looping by giving a WAIT or HOLD like options ". is there any in JCL..?

2.can the same be done thro REXX alone without involving JCL..?(offcourse the rexx has to submit or trigger my job).Here too i have a question.i'll post it if your reply doesn't help me.Smile


Thank you
_________________
Saro

Nothing is great unless God.
Back to top
View user's profile Send private message
Ravi
Beginner


Joined: 27 Jun 2005
Posts: 88
Topics: 2

PostPosted: Mon Jan 02, 2006 12:41 pm    Post subject: Reply with quote

saro, What exactly are you trying to achive. Explain why you want to do and then probably we have an oppurtinity to look from a different perspective, so the objective is acheived.
Back to top
View user's profile Send private message
saro
Beginner


Joined: 20 Aug 2005
Posts: 11
Topics: 1
Location: chennai

PostPosted: Mon Jan 02, 2006 9:30 pm    Post subject: Reply with quote

Ravi,
i'll put it simple.

I want to trigger (or submit) a job at a particular time(say 5 AM in the morning).
Is it possible to do with JCL or REXX..?(it should be)

let me know the possibilities.
_________________
Saro

Nothing is great unless God.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Jan 02, 2006 10:38 pm    Post subject: Reply with quote

This is what job schedulers are for. Do not use a batch job that just runs all day. That uses an initiator which is a scarce resource. Ask your systems people how to do this in your shop. They will either have a job scheduler installed, or they will have job classes that start at particular times of day.
Back to top
View user's profile Send private message Visit poster's website
Ravi
Beginner


Joined: 27 Jun 2005
Posts: 88
Topics: 2

PostPosted: Tue Jan 03, 2006 4:28 pm    Post subject: Reply with quote

As semigeezer mentioned, you must use Job Schedulers for all prod jobs. But Wink if the job you are submitting is for your own personal use, and don't want to involve mainframe scheduler, then try this approach http://www.mvsforums.com/helpboards/viewtopic.php?p=24200#24200
Back to top
View user's profile Send private message
saro
Beginner


Joined: 20 Aug 2005
Posts: 11
Topics: 1
Location: chennai

PostPosted: Tue Jan 03, 2006 10:15 pm    Post subject: Reply with quote

Quote:
Job Schedulers for all prod jobs


Geezer,..its my personal job,not a prod one.

Ravi hit the bulls eye.....thanks ravi.will try your idea.iam currently doing what phantom has mentioned in the link yo provided..Thank you once again.
_________________
Saro

Nothing is great unless God.
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