MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mass update on a table - resulting in -904

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Pavani Donepudi
Beginner


Joined: 07 Apr 2004
Posts: 13
Topics: 7

PostPosted: Mon Jan 23, 2006 10:06 pm    Post subject: Mass update on a table - resulting in -904 Reply with quote

Hi,

I am looking for a solution for the following req. I need to update one column with a value for the entire table records which has approximately 800000 (800 Thousands records). Update is simple but probably because of the huge data, it is resulting in -904.

Unfortunately I need to achieve this only via SQLs.

UPDATE TABLE1
SET COLUMN3 = 'N'
WHERE COLUMN1 = 'A'
AND DATE_COL IS NULL;

Any clue on this would be appreciated.

Regards,
Pavani.
Back to top
View user's profile Send private message
bauer
Intermediate


Joined: 10 Oct 2003
Posts: 315
Topics: 49
Location: Germany

PostPosted: Tue Jan 24, 2006 4:25 am    Post subject: Reply with quote

Hi,

-904 = Unavialable resource. Check SQLCA (or Spufi output ..) which resource in unavailable. Is table (pages of table) accessed by other programs/ user during executing your update?

Try lock table before updating.

regards,
bauer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group