View previous topic :: View next topic
|
Author |
Message |
Gopalakrishnan V
Active User
Joined: 28 Jun 2010 Posts: 102 Location: chennai
|
|
|
|
Suppose i have a keyword 'TCRWADS'.I need to find out the calling modules as well as the called module names(subprogram if any) having this keyword.So in cobol we give srchfor 'tcrwads' in that pds and get the module names.I need a rexx code for the same where i can get the called and calling module names as a report.Pls help. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
AFAIK there is no readily available code to give you this.
It looks like you will need to think through the logic required to achieve this and then code it up. |
|
Back to top |
|
|
Gopalakrishnan V
Active User
Joined: 28 Jun 2010 Posts: 102 Location: chennai
|
|
|
|
Since i am new in coding in rexx.i just have some basic knowledge.i wud be grateful if u can help me with the logic. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You will need to explain exactly what it is that you are trying to achieve.
a) I am looking for a keyword in some programs
b) If I find that keyword I then want ..................... |
|
Back to top |
|
|
Gopalakrishnan V
Active User
Joined: 28 Jun 2010 Posts: 102 Location: chennai
|
|
|
|
a) i m looking for a keyword 'xyz'
b) it is found in prog A,progB,prog C.
c) now prog A is calling prog D.
d) in my final output i should have :
main programs :prog A,Prog B and prog C
sub programs :prog D of main program A
e)Final output : progA having subprogram D,prog B and prog C |
|
Back to top |
|
|
Gopalakrishnan V
Active User
Joined: 28 Jun 2010 Posts: 102 Location: chennai
|
|
|
|
I just need to display these main program and subprogram names in my final output using rexx. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the fastest way is to use the ISPF provided member parts list...
it will cross reference calls and includes
You can ask for a raw output and process it with rexx |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Cheers for that Enrico, something I never knew about but could prove useful |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
use the ISPF provided member parts list. |
I am not sure what that is... can you provide the service or utility name? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Of course this will not work for calls to routines where the name is dynamically built... |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Member Parts utility can be found on option 4.12 or 5.12 from the standard ISPF Primary Option menu. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
enrico-sorichetti wrote: |
the fastest way is to use the ISPF provided member parts list...
it will cross reference calls and includes
You can ask for a raw output and process it with rexx |
Ya learn something new every day, dont 'cha?! Thanks. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
This book is quite interesting too: REXX for CICS/ESA R1V1 Guide and Reference
Part 1 (the Guide) is a nice REXX primer,
Part 2 (the Reference) is more CICS oriented.
Although the book was copyrighted in 1994 and says CICS/ESA, there is still plenty of interesting info in it. |
|
Back to top |
|
|
|