View previous topic :: View next topic
|
Author |
Message |
Lingam D
New User
Joined: 07 Sep 2011 Posts: 8 Location: india
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Hi,
Don't you have scheduler at your shop? |
|
Back to top |
|
|
Lingam D
New User
Joined: 07 Sep 2011 Posts: 8 Location: india
|
|
|
|
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 |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2593 Location: Silicon Valley
|
|
|
|
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 |
|
|
Lingam D
New User
Joined: 07 Sep 2011 Posts: 8 Location: india
|
|
|
|
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 |
|
|
sureshpathi10
Active User
Joined: 03 May 2010 Posts: 158 Location: Kuala Lumpur
|
|
|
|
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 |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
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 |
|
|
vcjadhav Warnings : 1 New User
Joined: 27 May 2008 Posts: 19 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|