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

-532 error when loading db2 table


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

New User


Joined: 22 Jul 2011
Posts: 11
Location: USA

PostPosted: Wed May 16, 2012 7:18 pm
Reply with quote

I am trying to load my test db2 table using ther following:
"ST02 EXEC DSNUPROC,SYSTEM=DSNT,UID='RANLOAD',UTPROC='' ' and keep getting a -532 error. Can anyone tell me how to resolue the error ?? It used to work, but now even out DBA can get it to work.

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

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed May 16, 2012 7:37 pm
Reply with quote

Tim Jones wrote:
I am trying to load my test db2 table using ther following:
"ST02 EXEC DSNUPROC,SYSTEM=DSNT,UID='RANLOAD',UTPROC='' ' and keep getting a -532 error. Can anyone tell me how to resolue the error ?? It used to work, but now even out DBA can get it to work.

Thanks

As the fine manual will tell you, a -532 indicates that a DELETE statement failed because its cascade to descendant tables violated a constraint. The full message indicates the tables involved and the descendant row on which the error occurred.
Back to top
View user's profile Send private message
Tim Jones

New User


Joined: 22 Jul 2011
Posts: 11
Location: USA

PostPosted: Wed May 16, 2012 7:53 pm
Reply with quote

I have finally loaded my RAN DB2 table. There is a view on this table. Does the view get generated when you load the table, or do I have to build the view after the table has been loaded ??

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

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed May 16, 2012 7:59 pm
Reply with quote

Tim Jones wrote:
I have finally loaded my RAN DB2 table. There is a view on this table. Does the view get generated when you load the table, or do I have to build the view after the table has been loaded ??

Thanks

The view per se needs to be created (with, of course, a CREATE VIEW statement). However, the data will appear when the underlying table(s) are loaded.
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: Wed May 16, 2012 8:19 pm
Reply with quote

Hello,

Quote:
The view per se needs to be created (with, of course, a CREATE VIEW statement).
This needs to be done only once and it sounds as though the view has already been CREATEd. (Re-)loading the table will not cause the view to be "lost".
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed May 16, 2012 8:24 pm
Reply with quote

dick scherrer wrote:
Hello,

Quote:
The view per se needs to be created (with, of course, a CREATE VIEW statement).
This needs to be done only once and it sounds as though the view has already been CREATEd. (Re-)loading the table will not cause the view to be "lost".

True; I should have written more clearly.
Back to top
View user's profile Send private message
Tim Jones

New User


Joined: 22 Jul 2011
Posts: 11
Location: USA

PostPosted: Wed May 16, 2012 11:17 pm
Reply with quote

Thanks to ALL. I have been able to re-load the test system with production data. I can now finish my testing. We need a good DBA here. The only DBA we have is going to retire next year, so he isn't too eager to learn things that he should know.


Thanks again to ALL icon_biggrin.gif
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 Error to read log with rexx CLIST & REXX 11
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Error when install DB2 DB2 2
No new posts Pulling a fixed number of records fro... DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top