Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Can we find the unused programs in a library by running a JC
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: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 23, 2008 6:15 pm    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Tue Sep 23, 2008 6:18 pm    Post subject:
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    Post subject: Reply to: Can we find the unused programs in a library by ru
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

Site Director


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

PostPosted: Wed Sep 24, 2008 12:14 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us