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 write REXX/CLIST to list pgms using a DB2 table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
newtorexx

New User


Joined: 02 Aug 2006
Posts: 3

PostPosted: Wed Aug 02, 2006 7:35 am    Post subject: How to write REXX/CLIST to list pgms using a DB2 table
Reply with quote

My objective is to obtain a list of programs which are accessing a particular table to INSERT or UPDATE or DELETE or SELECT. I think we can write a REXX or CLIST to achieve this. But, I am new to both and needing help. Will appreciate any help.

Thanks!
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Aug 02, 2006 10:46 am    Post subject:
Reply with quote

You can do that even with SUPERC.

First, search for the Sstring 'EXEC SQL' (you can ignore COBOL comment lines using DPCBCMT option). Then look for the table name and intersect the results.

O.
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Wed Aug 02, 2006 4:01 pm    Post subject: Re: How to write REXX/CLIST to list pgms using a DB2 table
Reply with quote

But, When we have the programs in multiple libraries, won't SUPERC take much time to process?

How about using DB2 sysibm tables to get the required pgms?

Thanks,
Antu
Back to top
View user's profile Send private message
newtorexx

New User


Joined: 02 Aug 2006
Posts: 3

PostPosted: Thu Aug 03, 2006 6:57 am    Post subject: Re: How to write REXX/CLIST to list pgms using a DB2 table
Reply with quote

I am thinking that we have to read/select SYSIBM.SYSPACKDEP and SYSIBM.SYSTABAUTH tables. These tables do have the information. But, do not know how to put the SQL in REXX and CLIST. I just want to use a TSO command something like TSO DB2FIND.

I do not know how to code/compile. Any help will be greatly appreciated.


Thanks
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Thu Aug 03, 2006 2:12 pm    Post subject:
Reply with quote

Hope you can get the required info here...

Thanks,
Antu
Back to top
View user's profile Send private message
newtorexx

New User


Joined: 02 Aug 2006
Posts: 3

PostPosted: Sun Aug 06, 2006 6:23 am    Post subject:
Reply with quote

Thanks Antu. That helped to some extent.
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 REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am


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