Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Find the program names by giving the table name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Thu Jun 25, 2009 11:56 am    Post subject: Find the program names by giving the table name
Reply with quote

hi,

I have a specific requirement to find out all the operations performed on a table like select ,insert or update.

Is there any way to find the program names by giving the table name

thanks
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Thu Jun 25, 2009 12:04 pm    Post subject: Reply to: HOW TO FIND THE ALL THE PROGRAMS AND OPERATIONS ON
Reply with quote

start playing around with
SYSIBM.SYSPACKSTMT and SYSIBM.SYSSTMT

but then You would have to be a bit proficient in parsing techniques,
You have the SQL statement ( up to 3500 bytes ) and You are on Your own
for single selects it might be simple but for more complex queries not so much
Back to top
View user's profile Send private message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Thu Jun 25, 2009 12:26 pm    Post subject:
Reply with quote

can you please post a query on this.

it would be useful

thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Thu Jun 25, 2009 12:31 pm    Post subject: Reply to: HOW TO FIND THE ALL THE PROGRAMS AND OPERATIONS ON
Reply with quote

this is a help forum, not a do it for me one...

I was not implying that a query on the ...STMT stuff would give a ready made solution

start from there , look at all the
SYSIBM.SYSPACK... stuff ( easy for packages because the relevant tables have a like prefix )
for the sysplan stuff You must investigate a bit
Back to top
View user's profile Send private message
r2k1984

New User


Joined: 21 Jun 2005
Posts: 69
Location: chennai

PostPosted: Thu Jun 25, 2009 12:40 pm    Post subject:
Reply with quote

THANKS MAN
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us