Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1542
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: 182
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: 1922
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: 2088
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: 182
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: 1528
Location: Chennai

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
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us