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

How to find which all programs need to rebind in case of


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Satish5

New User


Joined: 12 Nov 2007
Posts: 38
Location: Texas, USA

PostPosted: Tue Nov 24, 2009 5:23 pm
Reply with quote

Hi,

What will be the impact on programs in case of table change such as adding a column using alter? How to find which all programs need to rebind in case of table change?

Thanks,
Satish
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Tue Nov 24, 2009 5:33 pm
Reply with quote

All the programs inserting into the table may need to be regenerated (after adding the column to the query if needed). And all those programs which have select * on the table.

You can get those programs from SYSIBM.SYSTABAUTH table.
Back to top
View user's profile Send private message
balubhat

New User


Joined: 04 Oct 2005
Posts: 19
Location: Singapore

PostPosted: Wed Nov 25, 2009 2:55 pm
Reply with quote

You can use SYSIBM.SYSPACKDEP to check which are the programs using the table.

SELECT DNAME FROM SYSIBM.SYSPACKDEP
WHERE BNAME = <TABLE_NAME>
;
Back to top
View user's profile Send private message
Satish5

New User


Joined: 12 Nov 2007
Posts: 38
Location: Texas, USA

PostPosted: Thu Nov 26, 2009 9:15 am
Reply with quote

Thanks Bharath Bhat and balubhat.

SELECT DNAME FROM SYSIBM.SYSPACKDEP
WHERE BNAME = <TABLE_NAME>

gave me desired reesults.

I could not understand how to get the program list from SYSIBM.SYSTABAUTH, I would apprciate if you can provide the query.

Thanks,
Satish
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top