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

How to get the job starting time


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Fri Aug 17, 2007 5:30 pm
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
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
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

Global Moderator


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

PostPosted: Fri Aug 17, 2007 6:44 pm
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

Moderator Emeritus


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

PostPosted: Fri Aug 17, 2007 7:13 pm
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
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
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

Moderator Emeritus


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

PostPosted: Mon Aug 20, 2007 7:20 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top