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

Getting job details that ran in a particular time frame.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Mon Jan 20, 2014 7:00 pm
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
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: 199
Location: UK

PostPosted: Mon Jan 20, 2014 7:27 pm
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: 2455
Location: Hampshire, UK

PostPosted: Mon Jan 20, 2014 8:11 pm
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

Global Moderator


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

PostPosted: Mon Jan 20, 2014 8:18 pm
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
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
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: 199
Location: UK

PostPosted: Tue Jan 21, 2014 2:21 pm
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: 1742
Location: Tirupur, India

PostPosted: Tue Jan 21, 2014 5:27 pm
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
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

Moderator Emeritus


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

PostPosted: Tue Jan 21, 2014 8:32 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


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