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

How to measure cpu time taken by a cobol program???


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
MFfreak

New User


Joined: 09 Sep 2010
Posts: 3
Location: Mysore

PostPosted: Thu Sep 09, 2010 12:24 pm
Reply with quote

I have learnt performance tuning techniques but i am in need to check which tuning technique suits well for my cobol application. Please help me how to compare performance before and after tuning the program, so that i can justify tuning importance.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Sep 09, 2010 12:28 pm
Reply with quote

Ask your performance and capacity team to provide the details as this is something that they would get by analysing from the SMF data produced.

SMF data is a highly confusing beast and should not be taken lightly. Also, by performing your own analysis you will be merely duplicating the work already undertaken.

Although the SMF method would be far more accurate, a rough and ready method would be to take a look at the statistics displayed on the sysout of the run.
Back to top
View user's profile Send private message
MFfreak

New User


Joined: 09 Sep 2010
Posts: 3
Location: Mysore

PostPosted: Thu Sep 09, 2010 12:33 pm
Reply with quote

thank you for your suggestion but i like to know whether it is possible to measure CPU time taken by simple cobol program by coding?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Sep 09, 2010 3:56 pm
Reply with quote

There is osmething called as "Strobe". At some shops you, as an Application Developer can use Strobe for your programs. If you can not do that you need to follow what expat has said. Strobe is a performance measurement system that helps you to improve the performance of application programs by determining where and how time is spent in an online subsystem or batch processing program.

I'm not srue if there is way of measuring such a performance purely by COBOL program and for itself!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 09, 2010 4:14 pm
Reply with quote

MFfreak,

the statistics provided by JES, displayed in the output, provides a lot of info for every executed JOB Step.

Though it would be a good thing to learn about any performance tools that you have inhouse,
based on your relative inexperience,
I would at this stage concentrate on the JOB/STEP statistics provided by JES.

a good learning example would be to compare a batch program after you have altered the BUFNO parm on a QSAM or the ? parm on a vsam file.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Sep 09, 2010 4:42 pm
Reply with quote

As far as I am aware, without using tools like STROBE from Compuware, it is not possible to determine CPU usage within program code. And such a number would not be accurate, anyway, since you would not be able to capture the CPU time used by the program between the STOP RUN command and the actual completion.

In the absence of STROBE, SMF is your best source of data about the program and its execution statistics.
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 Sep 09, 2010 7:32 pm
Reply with quote

Hello,

It may be more help if you explain what you are actually trying to accomplish (other than getting cpu usage).

Quote:
I have learnt performance tuning techniques
Maybe not quite yet - very few beginners have learned this. . .

Does the job run too long? How is/was "too long" determined? Does the job abend due to some time-out? And so on. . .
Back to top
View user's profile Send private message
MFfreak

New User


Joined: 09 Sep 2010
Posts: 3
Location: Mysore

PostPosted: Mon Sep 13, 2010 9:05 am
Reply with quote

Thanks for all your suggestion. its done. i got all info needed from SMF through administrator.
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: Mon Sep 13, 2010 9:53 am
Reply with quote

Good to hear you have what you need - thank you for letting us know icon_smile.gif

d
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top