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

How to find that the programs are using COPYBOOK


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
suresh_gop1
Warnings : 1

New User


Joined: 23 May 2006
Posts: 18

PostPosted: Sun Apr 22, 2007 11:06 pm
Reply with quote

Hi,

How to find that the programs are using COPYBOOK? The COPYBOOK is to be changed. How to find how many and which programs are using same COPYBOOK?
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: Sun Apr 22, 2007 11:44 pm
Reply with quote

Hello,

Depending on where source code is stored, you will want to search/scan the source library(ies) for places where the copybook is mentioned.

Keep in mind that there are multiple ways to maintain source code, you will need to make sure you search the proper places (these are site specific). Common places are partitioned datasets (pds) and "the Librarian". You can search pds members in tso/ispf. There is a SCAN feature in Librarian. Other technologies have other ways to perform a global search. If you use some kind of source management software (i.e. Changeman. Endevor, etc), consider that as well.

Check with the people at your location to know where source is stored.

Something else to consider is the modules that have been "checked out" from production status and inform anyone who uses the copybook that changes are being made. When they compile, they will use the "new" copybook once it is stored in the copy library, but it is a good thing to tell people before changing copybooks. .

Good luck and we're here if there are questions icon_smile.gif
Back to top
View user's profile Send private message
suresh_gop1
Warnings : 1

New User


Joined: 23 May 2006
Posts: 18

PostPosted: Mon Apr 23, 2007 8:17 am
Reply with quote

Thanks for proactive mail. I know my COPYBOOK library and location. But I am asking that How to know which COBOL programs are using the COPYBOOK which is to be updated or something. The COPYBOOK might be used in 10 programs or more. How to find the COBOL programs?
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: Mon Apr 23, 2007 8:34 am
Reply with quote

Hello,

Please re-read my earlier reply - you have to search and/or scan every source library that has programs that might reference your copybook. Depending on how your site manages source, you may have to search multiple places.

My reply was not on how to locate the copybook, but rather how to locate programs that use it.

If i need to re-phrase something, let me know and i'll try a different set of words.
Back to top
View user's profile Send private message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Mon Apr 23, 2007 9:52 am
Reply with quote

Hi,

Go to the Search option 3.14 and give the string of the copybook name and provide the search pds containing your source programs... after that you will get the list of programs using the copybook and you can work on that...
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: Mon Apr 23, 2007 12:09 pm
Reply with quote

Hello,

As long as the source is only in one or more partioned datasets. Additional search/scan processes will be needed if that site uses Librarian or some other source repository.

The first task is to identify everywhere source might be stored.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Mon Apr 23, 2007 1:55 pm
Reply with quote

Hi,

Nothing to add much. Dick has explained very clearly.

Let me add in terms of procedure wise.

Try to search the usages of COPYBOOK by giving PANSCAN (option P.5)
in the library(production). It may be PROD (or) PROCLIB depends on your application.

So this will list the programs/Proc's which are using the COPYBOOK.

Thanks,
Diwakar.

-----------------------
Nobody is Perfect. I am Nobody
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: Tue Apr 24, 2007 3:54 am
Reply with quote

Hello,

Again, where source is stored must be identified. I believe "P.5" will only work if the site is using Panvalet?

Where source is stored will determine how to search/scan it. . .
Back to top
View user's profile Send private message
GSR

New User


Joined: 12 Mar 2007
Posts: 1
Location: HYDERABAD

PostPosted: Thu Apr 26, 2007 1:57 pm
Reply with quote

cvadlamudi wrote:
Hi,

Go to the Search option 3.14 and give the string of the copybook name and provide the search pds containing your source programs... after that you will get the list of programs using the copybook and you can work on that...




Let us know where exactly your programs are stored. Are they using any version controls like Endevor or Panvalet or other.
Back to top
View user's profile Send private message
socker_dad

Active User


Joined: 05 Dec 2006
Posts: 177
Location: Seattle, WA

PostPosted: Thu Apr 26, 2007 9:09 pm
Reply with quote

I concur with above. How you cross reference the copybook against source codes depends completely upon the library methodology of your site as well as any utility programs your site has.

For example, our source code is in Panvalet and a "panscan" will locate the modules quickly - as long as we specify the correct source libraries, as we have one for each development and staging platform.

We also have an aftermarket product from Microfocus called Revolve. Using Revolve, I can identify everything that touches a particular program, file, copybook, include, etc. in less than 3 seconds.

You may want to have a brief chat with your team lead on this to identify what your site has to offer. I am sure that you are not the first person to have this request. icon_wink.gif
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top