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

Code for called and calling modules in rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Gopalakrishnan V

Active User


Joined: 28 Jun 2010
Posts: 102
Location: chennai

PostPosted: Thu Nov 13, 2014 7:07 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 13, 2014 7:17 pm
Reply with quote

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
View user's profile Send private message
Gopalakrishnan V

Active User


Joined: 28 Jun 2010
Posts: 102
Location: chennai

PostPosted: Thu Nov 13, 2014 7:29 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 13, 2014 7:36 pm
Reply with quote

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
View user's profile Send private message
Gopalakrishnan V

Active User


Joined: 28 Jun 2010
Posts: 102
Location: chennai

PostPosted: Thu Nov 13, 2014 7:51 pm
Reply with quote

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
View user's profile Send private message
Gopalakrishnan V

Active User


Joined: 28 Jun 2010
Posts: 102
Location: chennai

PostPosted: Thu Nov 13, 2014 7:53 pm
Reply with quote

I just need to display these main program and subprogram names in my final output using rexx.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Nov 13, 2014 8:00 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Nov 13, 2014 8:09 pm
Reply with quote

Cheers for that Enrico, something I never knew about but could prove useful icon_pray.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Thu Nov 13, 2014 10:17 pm
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Nov 13, 2014 10:42 pm
Reply with quote

Of course this will not work for calls to routines where the name is dynamically built...
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Sat Nov 15, 2014 1:48 am
Reply with quote

Member Parts utility can be found on option 4.12 or 5.12 from the standard ISPF Primary Option menu.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Nov 15, 2014 2:32 am
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sat Nov 15, 2014 12:32 pm
Reply with quote

Gopalakrishnan V wrote:
Sinc 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.
You should read this sticky.

You should read these books and keep them open while you're coding:
TSO/E Command Reference
ISPF Service Guide
REXX User Guide

If you plan to search or compare: z/OS ISPF User Guide Vol II (Appendix A is all about ISRSUPC)
If you plan to write a macro: ISPF Edit and Edit Macros
If you plan to use panels and skeletons: ISPF Dialog Developer's Guide and Reference

and please stop saying "module" (the executable) when you mean "program" (the source code).
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Nov 16, 2014 8:57 pm
Reply with quote

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
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top