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
 

 

Can I update other columns during processing

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Can I update other columns during processing
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    Post subject: Re: cursor related
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    Post subject:
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    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 IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm


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