Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
How do you know if they are active or not? This is NOT an easy thing to determine -- the system doesn't track this. Consider these scenarios:
- Main program executes in batch job. This is easy to identify but may require SMF data to know when / how often it executes.
- Subprogram executed from main program in batch job. This may be fairly easy to identify but not always -- a COBOL dynamic call, for example, may be in the form CALL WS-SUBPROGRAM where WS-SUBPROGRAM is a variable and the program name is put in the variable with a MOVE statement.
- Main program executes in CICS. The CICS statistics may help you identify them.
Your best bet would be to analyze the SMF type 30 records (and 110 for CICS) for a period of time -- at least going back to the last end of year (calendar AND fiscal if they are different). This won't necessarily identify all the subprograms but it should identify the main programs.
- Subprogram executed from a CICS main program. Again, this can present difficulties -- the subprogram can be called at least 4 different ways. |
|