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
 

 

-532 error when loading db2 table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: -532 error when loading db2 table
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: 1771
Location: Bloomington, IL

PostPosted: Wed May 16, 2012 7:37 pm    Post subject: Re: -532 error when loading db2 table
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    Post subject: db2 vIEW
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: 1771
Location: Bloomington, IL

PostPosted: Wed May 16, 2012 7:59 pm    Post subject: Re: db2 vIEW
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

Site Director


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

PostPosted: Wed May 16, 2012 8:19 pm    Post subject:
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: 1771
Location: Bloomington, IL

PostPosted: Wed May 16, 2012 8:24 pm    Post subject:
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    Post subject:
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    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 Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am


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