View previous topic :: View next topic |
Author |
Message |
manu Beginner
Joined: 26 Dec 2002 Posts: 47 Topics: 19
|
Posted: Thu May 21, 2020 4:03 pm Post subject: Cobol Program daily execution count |
|
|
Hello,
In my organization,there is a Cobol program which gets executed in several batch processes and CICS transactions. There are so many processes(in hundreds) which call this Cobol program and we are trying to determine the number of times(approx...) this program get executed everyday. I am posting here to get an idea of the different ways in which we can try to get this information. I guess this information should be available in SMF and will explore it.Please let me know if anyone has any other ideas or additional comments/information which may be helpful for this. Thanks. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Fri May 22, 2020 9:21 am Post subject: |
|
|
manu,
Look in SMF-30 records identification section for the field SMF30PGM and it contains Program name (taken from PGM= parameter on EXEC card). If a backward reference was used, this field contains PGM=*.DD. _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
manu Beginner
Joined: 26 Dec 2002 Posts: 47 Topics: 19
|
Posted: Tue May 26, 2020 7:11 am Post subject: |
|
|
Hello Kolusu,
Thanks for your inputs.I will check SMF. |
|
Back to top |
|
|
rsantosh Beginner
Joined: 20 Dec 2014 Posts: 38 Topics: 9
|
Posted: Wed Dec 09, 2020 8:07 am Post subject: |
|
|
Hello Kolusu,
Is there any way to find out if sub programs are getting executed? Recently we archived one subprogram thinking it is obsolete(we searched for the program name in the source library) but found out that there is one monthly program which still calls the subprogram.
Regards
Santosh |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Dec 09, 2020 5:12 pm Post subject: |
|
|
rsantosh wrote: | Hello Kolusu,
Is there any way to find out if sub programs are getting executed? Recently we archived one subprogram thinking it is obsolete(we searched for the program name in the source library) but found out that there is one monthly program which still calls the subprogram.
Regards
Santosh |
rsanthosh,
Subprograms are tough to track. However there are ways.
Option 1. You can use RACF to do the monitoring. You enable logging and then you can look at RACF SMF records to find out the user and job executing the module.
Code: |
RDEFINE PROGRAM pgmxxx ADDMEM('Your.loadlib'//NOPADCHK) UACCC(READ) AUDIT(ALL)
|
This allows anyone to access the program pgmxxx from library Your.loadlib, and audits everything (i.e. writes an SMF Type 80 record). You can even use masks (e.g. PGM* for any program beginning with PGM) in this command. Don’t forget to refresh the PROGRAM class (SETROPTS WHEN(PROGRAM) REFRESH), and read up carefully about program control to avoid affecting other security processing.
PS: This will not work for CICS programs.
Option 2. Peter Relson from IBM offers a free "as is, no warranty" tool to monitor program fetch activity: the Module Fetch Monitor. Contact Peter directly at relson@us.ibm.com to get a copy and use that to monitor your program fetch activity. _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
rsantosh Beginner
Joined: 20 Dec 2014 Posts: 38 Topics: 9
|
Posted: Wed Dec 16, 2020 7:00 am Post subject: |
|
|
Thank you Kolusu.
Regards,
Santosh |
|
Back to top |
|
|
|
|