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
 

 

Getting job details that ran in a particular time frame.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Lingam D

New User


Joined: 07 Sep 2011
Posts: 8
Location: india

PostPosted: Mon Jan 20, 2014 6:51 pm    Post subject: Getting job details that ran in a particular time frame.
Reply with quote

I am developing a rexx program to access the job details which ran in a given time frame.

My input for the program is start-time and end-time. I need to get all the job details that ran within this time limit.

Can you please help me in doing this.

Thanks in advance.
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Mon Jan 20, 2014 7:00 pm    Post subject:
Reply with quote

Hi,

Don't you have scheduler at your shop?
Back to top
View user's profile Send private message
Lingam D

New User


Joined: 07 Sep 2011
Posts: 8
Location: india

PostPosted: Mon Jan 20, 2014 7:04 pm    Post subject:
Reply with quote

Hi,

We have Zeke scheduler.

My requirement is to have a tool, which emails the list of jobs ran in a given interval.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 175
Location: UK

PostPosted: Mon Jan 20, 2014 7:27 pm    Post subject:
Reply with quote

Where do you propose getting the list of jobs from? Your scheduler? SMF? Somewhere else?

Are you talking about just z/OS jobs, or any jobs that may run through your scheduler?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1715
Location: UK

PostPosted: Mon Jan 20, 2014 8:11 pm    Post subject: Reply to: Getting job details that ran in a particular time
Reply with quote

Further, what about jobs that start before your report time-frame but end within that time-frame and jobs that start within the time-frame but do not end until a time-frame in the future?
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Mon Jan 20, 2014 8:18 pm    Post subject: Reply to: Getting job details that ran in a particular time
Reply with quote

Quote:
We have Zeke scheduler.

Ask the vendor how to get a log of the jobs submitted. Then look at the system console log to determine when the jobs started and ended.
Back to top
View user's profile Send private message
Lingam D

New User


Joined: 07 Sep 2011
Posts: 8
Location: india

PostPosted: Tue Jan 21, 2014 11:22 am    Post subject:
Reply with quote

I need to get the jobs that end within the given time-frame irrespective of their start time.

I need to access the job details(RC, start-time, End-time) from SDSF independent of the scheduler.
Back to top
View user's profile Send private message
sureshpathi10

Active User


Joined: 03 May 2010
Posts: 154
Location: Kuala Lumpur

PostPosted: Tue Jan 21, 2014 1:39 pm    Post subject:
Reply with quote

It might be crazy... but you have an option to do what do you want.

I suggest you to search for "Using SDSF with the REXX programming language".
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 175
Location: UK

PostPosted: Tue Jan 21, 2014 2:21 pm    Post subject:
Reply with quote

The Rexx/SDSF approach would rely on the jobs still being in the spool which may not be the case.

I would suggest SMF type 30 records, sub-type 5 if I recall correctly.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Tue Jan 21, 2014 5:27 pm    Post subject:
Reply with quote

Hello,
As far as I know Scheduler would have information of all the jobs that are defined on the scheduler.
If your job is not defined on the scheduler then you would not get it from scheduler.

SDSF/REXX interface would miss out jobs if they are moved away from spool. No joy here.

I think the only fool proof & the correct method to do it is by accessing SMF 30, subtype 5 as mentioned by David.

The sad news is, you would need SAS or some other programming language to extract data from SMF Type 30.

Regards,
Back to top
View user's profile Send private message
vcjadhav
Warnings : 1

New User


Joined: 27 May 2008
Posts: 19
Location: India

PostPosted: Tue Jan 21, 2014 6:33 pm    Post subject:
Reply with quote

I think the question would be more relevant on where your jobs are moved from spool to?

In SAVRS, I think, all the job information is been stored in VSAM files.
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: Tue Jan 21, 2014 8:32 pm    Post subject:
Reply with quote

Hello,

How did the person who assigned this expect you to do this?

Have you talked with your Scheduling people and ask if they already have something that gives the info you want?

Many places do . . .
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts cics & real time monitoring icehat CICS 5 Wed Sep 07, 2016 2:29 am


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