Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

creating a report for a job after completion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: creating a report for a job after completion
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 17, 2013 1:09 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 17, 2013 2:55 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jul 17, 2013 3:00 pm    Post subject: Re: creating a report for a job after completion
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: 2158
Location: @my desk

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

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

Senior Member


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

PostPosted: Wed Jul 17, 2013 3:09 pm    Post subject:
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: 2158
Location: @my desk

PostPosted: Wed Jul 17, 2013 3:45 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jul 17, 2013 4:28 pm    Post subject:
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: 641
Location: Whitby, ON, Canada

PostPosted: Wed Jul 17, 2013 6:53 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Jul 18, 2013 7:29 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts Creating an 'Enter' event with IMS MF... dileep chirasani Java & MQSeries 1 Sat Aug 06, 2016 2:23 am
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Daily report to be extracted from CA ... polymathtarun DFSORT/ICETOOL 5 Mon Jul 11, 2016 4:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us