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

How to find the number of times a CLIST is getting executed.


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rockish

Active User


Joined: 05 Jun 2009
Posts: 185
Location: Planet Earth

PostPosted: Wed Apr 06, 2011 2:02 am
Reply with quote

I have a CLIST that is available for all the users to run. This CLIST can be invoked in multiple ways like direct invocation, triggered from a batch job, etc. I am trying to arrive at the number of times this CLIST is getting executed on a every single or over a period time. Is this something that gets captured anywhere in the system or is there a way I can find the number of times a CLIST gets executed ?
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Wed Apr 06, 2011 3:54 am
Reply with quote

There is probably a better way...

I once had to do something similar and I accomplished it by adding a call to a logging routine. Each time the CLIST was called, I added a line to a file: timestamp, system name, userid, clist_name.

And occasionally, XMITed it to myself. That is, when a lucky user ran the CLIST, the file was sent to me.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Apr 06, 2011 11:10 am
Reply with quote

You could try SMF type 32.
Back to top
View user's profile Send private message
rockish

Active User


Joined: 05 Jun 2009
Posts: 185
Location: Planet Earth

PostPosted: Wed Apr 06, 2011 9:38 pm
Reply with quote

Pedro - thanks for your insight. I wish it was that easy. But the problem with my shop is that, this CLIST resides in SYS1.CLISTLIB and any changes to that dataset doesnt go that easy. Its a lengthy process.

Petter Holland - Let me check that. I am not aware of SMF type 32 much. Let me do some homework in understanding that.

Thank you both.
Back to top
View user's profile Send private message
parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Mon Apr 11, 2011 12:11 pm
Reply with quote

i use a simple method to catch the usecount of various rexx-scripts with minimal overhead
I ADDRESS LINKMVS to a Copy of IEFBR14 (Script1 to BLABLA01, script2 to BLABLA02 etc.)
all fetch-events of these iefbr14-copies are visible in ibms module fetch monitor (which is unsupported freeware)
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top