View previous topic :: View next topic
|
Author |
Message |
Benita Mohandass
New User
Joined: 17 Jul 2013 Posts: 2 Location: India
|
|
|
|
hi!! I need to create a report(PS) with the start time, end time and source and target count using a JCL after the job completion.
Can you please let me know how we can do this? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Source & target counts are what exactly ?
Start and end times can be extracted from SMF records, and almost certainly are already by your performance and capacity planning team.
And exactly which programs would this JCL be executing ?
Please be aware that JCL does absolutely nothing except execute programs and define any input / output files required by that program. |
|
Back to top |
|
|
Benita Mohandass
New User
Joined: 17 Jul 2013 Posts: 2 Location: India
|
|
|
|
By source and target count i mean the count of the input file and the output file of a completed job.
I really dont have any idea on what program I need to be used in the JCL to get the stats detail of a job from the spool. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Does your program not display these details in its job log ? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Benita Mohandass wrote: |
hi!! I need to create a report(PS) with the start time, end time and source and target count using a JCL after the job completion. |
Unfortunately that's a very vague definition of what you are trying to accomplish. For example, a Job might have one step or more - are you looking forward to list the "statistics" of all the steps in report? Are you talking about all the files invloved as input/output? Does the Job have only one step - yes, life is bit easy.
And once the report is created, how the data will be used? |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Exactly how these info would be processed further? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I've a vague clue about the requirement - "they" need to see, when the Job started, ended and how much records it was dealing with. (Said that, we need to understand we're in 2013 - where through-put of a "machine" (mainframes) is much more than millions of instructions per second - and such measures to downsize or analyse to purcahse a new product sounds outdated, IMHO). |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Hi Anuj,
The TS happens to be a colleague of mine.
Looks like they have a manual process to get all stats - like job start time,end time, input & output record counts if applicable from all the jobs in the batch cycle.
These statistics are not fed to any other process, it's like a daily monitoring process to make sure all jobs ran fine. However the tool used for sysout archival and the number of jobs are still unknown.
Our shop uses a PCOM macro for this kind of thing (just to capture the start/end times of a known list of jobs) |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thanks Arun. Apparently I was thinking in different direction, altogether. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
A simple way to do this would be to use the Rexx interface to SDSF. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
I'd bet the job scheduler has that info already, at least for the job run start/stop times.
The counts would either need to be read from sysouts already in the programs/jobs, or by opening the files, reading through them and counting them.
Control-M from BMC has a side utility called Control-B that can do these things as part of the schedule, very handy. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If the process does not already provide input and output record counts, they are not worth the overhead to find them later . . .
If someone really believes they are needed, the code should be changed to include them. |
|
Back to top |
|
|
|