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

Can we find the unused programs in a library by running a JC


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
silentarya

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Tue Sep 23, 2008 6:11 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 23, 2008 6:15 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 23, 2008 6:18 pm
Reply with quote

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
View user's profile Send private message
silentarya

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Tue Sep 23, 2008 6:20 pm
Reply with quote

Basically the target would be to run the JCL and write the names of the unused programs onto a DSN??
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 24, 2008 12:14 am
Reply with quote

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
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Calling an Open C library function in... CICS 1
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
Search our Forums:

Back to Top