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

Fileaid db2 referential integrity


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sanjida

New User


Joined: 30 Dec 2007
Posts: 13
Location: delhi

PostPosted: Sun Jan 20, 2008 6:10 pm
Reply with quote

i am trying to change a field in a child table which is a foriengn key using fileaid for db2.
the reason is the table has a parent table.

can anybody help me how can i change using fileaid for db2 tool.
Back to top
View user's profile Send private message
Ritesh Chopra

New User


Joined: 15 Oct 2007
Posts: 13
Location: India

PostPosted: Mon Jan 21, 2008 2:46 pm
Reply with quote

sanjida wrote:
i am trying to change a field in a child table which is a foriengn key using fileaid for db2.
the reason is the table has a parent table.

can anybody help me how can i change using fileaid for db2 tool.



Please mention the problem clearly. Is it that you want to change a field that references another field ? Where is the problem exactly ?
Back to top
View user's profile Send private message
sanjida

New User


Joined: 30 Dec 2007
Posts: 13
Location: delhi

PostPosted: Mon Jan 21, 2008 10:12 pm
Reply with quote

actually i want to change a field called APPL_ID in a child table(a1) which is foriegn key .
when i trying to chaNGE ITS NOT ALLOWING ME .

how can i do it using file aid for db2.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Jan 21, 2008 11:02 pm
Reply with quote

Referential Integrity... that' s the buzzword

You simply cannot do it, it is not a fileaid issue...
it' s a table/application design constraint !!
Back to top
View user's profile Send private message
sanjida

New User


Joined: 30 Dec 2007
Posts: 13
Location: delhi

PostPosted: Tue Jan 22, 2008 9:20 am
Reply with quote

how should i approach for this problem.

thanks for the reply
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Jan 22, 2008 4:23 pm
Reply with quote

Add the needed row to the parent table first or drop the referential constraint.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jan 22, 2008 10:21 pm
Reply with quote

Hello,

You might also talk with your dba(s) to make sure you understand the "rules" concerning these tables.
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Need suggestion on how to force refer... DB2 7
No new posts Fileaid 2 commands instream work. In ... Compuware & Other Tools 2
No new posts Fileaid Update Replace with null string Compuware & Other Tools 4
Search our Forums:

Back to Top