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
 

 

Code for called and calling modules in rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Code for called and calling modules in rexx
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 13, 2014 7:17 pm    Post subject:
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    Post subject: Reply to: Code for called and calling modules in rexx
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 13, 2014 7:36 pm    Post subject:
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    Post subject: code for calling and called modules.
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    Post subject: code for calling and called modules in rexx
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Nov 13, 2014 8:00 pm    Post subject: Reply to: Code for called and calling modules in rexx
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 13, 2014 8:09 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Nov 13, 2014 10:17 pm    Post subject: Reply to: Code for called and calling modules in rexx
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Nov 13, 2014 10:42 pm    Post subject:
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: 641
Location: Whitby, ON, Canada

PostPosted: Sat Nov 15, 2014 1:48 am    Post subject:
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: 1238
Location: Richfield, MN, USA

PostPosted: Sat Nov 15, 2014 2:32 am    Post subject: Re: Reply to: Code for called and calling modules in rexx
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: 1218
Location: Israel

PostPosted: Sat Nov 15, 2014 12:32 pm    Post subject: Re: Reply to: Code for called and calling modules in rexx
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: 1218
Location: Israel

PostPosted: Sun Nov 16, 2014 8:57 pm    Post subject: Reply to: Code for called and calling modules in rexx
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am


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