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

Can I update other columns during processing


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

New User


Joined: 06 Mar 2006
Posts: 50
Location: PUNE

PostPosted: Wed Apr 12, 2006 1:19 pm
Reply with quote

Hi all,
I have five columns C1.........C5,

While declaring cursor , If I declare cursor with update option only for column C1, In this case can I update other columns during processing?


Regards
ANAND
Back to top
View user's profile Send private message
unni_nss

New User


Joined: 20 Sep 2005
Posts: 19

PostPosted: Wed Apr 12, 2006 4:54 pm
Reply with quote

hi,
its not possible.you may be coding like update option as,

DECLARE CURSOR cursr_name ON table_name UPDATE column_name SET column_name = value etc.

So in this case you can update the column name what we mentioned in the cursor!
Back to top
View user's profile Send private message
sri.mainframes

New User


Joined: 16 Feb 2006
Posts: 29
Location: MUMBAI

PostPosted: Mon Apr 17, 2006 7:15 pm
Reply with quote

Hi Anand,

You want to update the table or cursor?
if u want to update the table, it is not possible while processing.
if u want to declare one more cursor it's not allowing u becoz the table is in use

correct me if i am wrong

thanks
sri.prince
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 Remote Unload of CLOB Columns DB2 6
No new posts Increase the number of columns in the... IBM Tools 3
No new posts DB2 Views with Multiple SQL & Col... DB2 8
No new posts SORT - To repeat a string in same col... SYNCSORT 3
No new posts JCL - To repeat a string in same colu... JCL & VSAM 2
Search our Forums:

Back to Top