Cobol upgradation is gonna happen soon. My application has many load modules which don't have source code. Need to recheck whether they are active/inactive. For now I have created a list of data for both COBOL load members as well as CICS load members which are using cobol codes. Initially the data was in text format. I pushed them into mainframes now as separate PDS datasets where they contain the names of load members.
Now my requirement is need to compare these datasets with JCL jobs library as well as Procedure library and cross-check whether they are active/inactive. Is there any shortcut/usage of any tool to perform this ?? Apart from the SRCHFOR option. Please let me know if there is a way !!!
Joined: 06 Jun 2008 Posts: 8417 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.