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

creating a report for a job after completion


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Benita Mohandass

New User


Joined: 17 Jul 2013
Posts: 2
Location: India

PostPosted: Wed Jul 17, 2013 12:54 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 17, 2013 1:09 pm
Reply with quote

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
View user's profile Send private message
Benita Mohandass

New User


Joined: 17 Jul 2013
Posts: 2
Location: India

PostPosted: Wed Jul 17, 2013 2:48 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 17, 2013 2:55 pm
Reply with quote

Does your program not display these details in its job log ?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 17, 2013 3:00 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Jul 17, 2013 3:02 pm
Reply with quote

Exactly how these info would be processed further?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 17, 2013 3:09 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Jul 17, 2013 3:45 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 17, 2013 4:28 pm
Reply with quote

Thanks Arun. Apparently I was thinking in different direction, altogether.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Wed Jul 17, 2013 6:53 pm
Reply with quote

A simple way to do this would be to use the Rexx interface to SDSF.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Thu Jul 18, 2013 5:45 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Jul 18, 2013 7:29 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Report of batch jobs JCL & VSAM 1
Search our Forums:

Back to Top