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 processing a XML file in PL/1 grvtomar PL/I & Assembler 2 Fri Jun 09, 2017 1:07 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts File processing vishwakotin Mainframe Interview Questions 14 Fri Apr 28, 2017 11:38 am
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm


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