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 get the job starting time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
raviprasath_kp
Warnings : 1

New User


Joined: 20 Feb 2005
Posts: 65
Location: chennai

PostPosted: Fri Aug 17, 2007 5:12 pm    Post subject: How to get the job starting time
Reply with quote

Hi,
I need to send auto generated mail if job run more than one hour.
Please help me how to do in JCL?
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 Aug 17, 2007 5:30 pm    Post subject: Reply to: How to get the jcl job starting time
Reply with quote

You want to know how to determine if a job has been running for more than one hour?
Back to top
View user's profile Send private message
raviprasath_kp
Warnings : 1

New User


Joined: 20 Feb 2005
Posts: 65
Location: chennai

PostPosted: Fri Aug 17, 2007 6:04 pm    Post subject: Reply to: How to get the job starting time
Reply with quote

no this is my requirment

i am running one job

if the job is running more than one hour i will send mail to all

its like a alert mail

so i want to know how to fetch time from spool
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Aug 17, 2007 6:15 pm    Post subject: Re: Reply to: How to get the job starting time
Reply with quote

raviprasath_kp wrote:
no this is my requirment

i am running one job

if the job is running more than one hour i will send mail to all

its like a alert mail

so i want to know how to fetch time from spool


I would look at the job scheduling software your shop is using, this sounds like something that could detect.
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 Aug 17, 2007 6:44 pm    Post subject: Reply to: How to get the job starting time
Reply with quote

There are plenty of posts related to running SDSF in batch or REXX.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Aug 17, 2007 7:13 pm    Post subject:
Reply with quote

Hello,

You might also change the program to (periodically) check the current time against the start time and if the elapsed time is greater than 1 hour, submit JCL thru the internal reader that generates/sends the e-mail.

If there is scheduling software in use on your system, i'd look at using that before inventing some process. . .
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Aug 17, 2007 7:54 pm    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

You might also change the program to (periodically) check the current time against the start time and if the elapsed time is greater than 1 hour, submit JCL thru the internal reader that generates/sends the e-mail.

If there is scheduling software in use on your system, i'd look at using that before inventing some process. . .


Of course if your program isn't working properly then you might never get to the check of the current time.
Back to top
View user's profile Send private message
raviprasath_kp
Warnings : 1

New User


Joined: 20 Feb 2005
Posts: 65
Location: chennai

PostPosted: Mon Aug 20, 2007 7:13 pm    Post subject: Reply to: How to get the job starting time
Reply with quote

ok,how to get the start time from spool to cobol
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Aug 20, 2007 7:20 pm    Post subject:
Reply with quote

Hello,

This question
Quote:
ok,how to get the start time from spool to cobol
is not clear.

Are you asking about some job that ran previously and you want the time from the queued output?

Are you asking about the currently running program/job?

If you are talking about the job that is currently running, you do not get the time from the spool - you get it from the system (before the program even opens any of the files). From then on, periodically get the time from the system and compare it against the start time. When the time of execution exceeds one hour, do whatever is needed at that time.
Back to top
View user's profile Send private message
raviprasath_kp
Warnings : 1

New User


Joined: 20 Feb 2005
Posts: 65
Location: chennai

PostPosted: Tue Aug 21, 2007 11:12 pm    Post subject: Reply to: How to get the job starting time
Reply with quote

thanks time

how to get time from system for running job
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm


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