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
 

 

How to find that the programs are using COPYBOOK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to find that the programs are using COPYBOOK
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

Site Director


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

PostPosted: Sun Apr 22, 2007 11:44 pm    Post subject:
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    Post subject: Re:How to find that the programs are using COPYBOOK
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

Site Director


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

PostPosted: Mon Apr 23, 2007 8:34 am    Post subject:
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    Post subject: Re: How to find that the programs are using COPYBOOK
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

Site Director


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

PostPosted: Mon Apr 23, 2007 12:09 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Apr 24, 2007 3:54 am    Post subject:
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    Post subject: Re: How to find that the programs are using COPYBOOK
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: 147
Location: Columbia, MO

PostPosted: Thu Apr 26, 2007 9:09 pm    Post subject: Re: How to find that the programs are using COPYBOOK
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming 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 Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm


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