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 can we identify the programs using the same copybook

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
shaktieswararao.Hazaru

New User


Joined: 25 Sep 2010
Posts: 20
Location: Hyderabad

PostPosted: Mon Sep 27, 2010 2:54 pm    Post subject: How can we identify the programs using the same copybook
Reply with quote

HI,

How can we identify the programs using the same copybook by using the 3.14 option.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Sep 27, 2010 3:18 pm    Post subject:
Reply with quote

i have always searched for ' COPY '.
used the parm that includes the member name on each line. IDX or something, you will have to look in the documentation or PF1 help.
also used the parm that excludes comments.

the output list is then every line in every module that contains the COPY cobol directive.

sometimes I write a REXX Script to scrap the output, sometimes I just edit the output and use commands like shift left, shift right, change all, x all.

the end product is to produce a file with each line containing
a module name - in column 1-10
and the copybook that was ' COPYed'. - in column 20 - 30.

now I can sort on the copybook name, module name.
then write a REXX script to consolidated based on copybook name,
or use sort to accomplish the same.

it is up to you to decide which tools to use.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Mon Sep 27, 2010 5:34 pm    Post subject:
Reply with quote

A good SCM tool could give all information.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Sep 27, 2010 5:36 pm    Post subject: Reply to: How can we identify the programs using the same co
Reply with quote

but also the ISPF member parts list ( option 4.12 IIRC )
Back to top
View user's profile Send private message
Mrspredeep

New User


Joined: 30 Jun 2010
Posts: 28
Location: USA

PostPosted: Tue Sep 28, 2010 9:48 pm    Post subject:
Reply with quote

in start 3.4, when you are in the PDS with the programs, you could enter

SRCHFOR <copybookname>

This searches for all members that contain the word <copybookname>

That's how I do it.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1746
Location: Bloomington, IL

PostPosted: Tue Sep 28, 2010 10:14 pm    Post subject:
Reply with quote

PeterHolland wrote:
A good SCM tool could give all information.

Can it do so, or can it do so if its data base has been conscientiously kept up to date?

The reason that I ask is that my shop is desperately trying to determine the relationships between components (jobs, load modules, source modules, etc.) so that proper impact analysis can be done. We have never done this before, have no existing SCM tools (save a few homebrewed ones), and have some extremely non-standard practices that are causing all kinds of agita (e.g., module names are considered to be only five characters long; positions 6-8 are used as the version number!) It would be nice (although not very probable, IMPO) if I could point to a tool that would do even 80% of what we need in an automated fashion.

(The spellchecker suggests that I change "SCM" to either "SCAM" or "SCUM". Nonetheless, I agree that SCM tools do have value icon_biggrin.gif )
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Tue Sep 28, 2010 10:24 pm    Post subject: Reply to: How can we identify the programs using the same co
Reply with quote

for an initial approach the ispf member parts list is quite useful at least for sources

it cross references copy/include and call statements
for ASM, COB, FOR/FTN, PAS, PL1/PLI, SCR(script).
Back to top
View user's profile Send private message
shaktieswararao.Hazaru

New User


Joined: 25 Sep 2010
Posts: 20
Location: Hyderabad

PostPosted: Tue Oct 04, 2011 7:50 pm    Post subject:
Reply with quote

I agree with Mrspredeep.

We can search it in ISPF 3.14 option, with the copybook name in search string and with proper DSN name.

It gives the list of programs that are using the copybook
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Tue Oct 04, 2011 8:03 pm    Post subject: Reply to: How can we identify the programs using the same co
Reply with quote

I guess that after one year nobody would care about Your agreement icon_biggrin.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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
No new posts User exit in COBOL programs ganasrinivasan PL/I & Assembler 0 Thu Aug 18, 2016 12:48 pm
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm


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