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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to measure cpu time taken by a cobol program???
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 09, 2010 12:28 pm    Post subject:
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    Post subject: Reply to: [b]How to measure cpu time taken by a cobol progra
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

Senior Member


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

PostPosted: Thu Sep 09, 2010 3:56 pm    Post subject:
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    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Thu Sep 09, 2010 4:42 pm    Post subject:
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

Site Director


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

PostPosted: Thu Sep 09, 2010 7:32 pm    Post subject:
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    Post subject: Reply to: How to measure cpu time taken by a cobol program??
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

Site Director


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

PostPosted: Mon Sep 13, 2010 9:53 am    Post subject: Reply to: How to measure cpu time taken by a cobol program??
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm


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