View previous topic :: View next topic
|
Author |
Message |
silentarya
New User
Joined: 11 Mar 2007 Posts: 35 Location: Chennai
|
|
|
|
Hi,
We store all our COBOL progs in NIST.COBOL.SOURCE.
There is a re-org happening. They want to remove all the unused programs to archive.
Is there a way that i can write a jcl and find out which are the unused programs ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Writing the JCl would be easy enough, unfortunately the logic required in the program that your newly written CJL would execute will take a whole lot of consideration, coding and testing. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Is there a way that i can write a jcl and find out which are the unused programs ? |
How do you define unused program? For subprograms you could check the library for all called routines (although that's not a very straight forward process to start with) and mark them. However, for batch and CICS programs how would you classify them as unused? Over time you could track via SMF statistics which programs are executed but it would take a while (at least a year, since some programs only run once a year) before you could even begin to identify which programs are "unused" in the sense of not being executed.
The simpler solution would be simply to archive everything and see what's pulled back from archive. |
|
Back to top |
|
|
silentarya
New User
Joined: 11 Mar 2007 Posts: 35 Location: Chennai
|
|
|
|
Basically the target would be to run the JCL and write the names of the unused programs onto a DSN?? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Basically the target would be to run the JCL and write the names of the unused programs onto a DSN?? |
Writing the names in a file is the easy part. Determining the "unused" program names is where you will have problems (as has been mentioned in erlier replies). |
|
Back to top |
|
|
|