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

can we update a coloumn in db2 cobol whithout cursor


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sreelatha.rajoly
Warnings : 1

New User


Joined: 27 Jan 2007
Posts: 2
Location: hyderabad

PostPosted: Sat Feb 10, 2007 11:00 am
Reply with quote

can we update a host variable in db2 using cobol program without declaring a cursor?
Back to top
View user's profile Send private message
tarunbhardwajleo

New User


Joined: 23 Feb 2007
Posts: 25
Location: Dallas, TX

PostPosted: Thu Mar 01, 2007 3:42 am
Reply with quote

Yes, you can update a column/host variable in DB2 without a cursor, provided the predicates specified in the query yield a single result set. If there are multiple rows in the result set, then you need to use a cursor and in that case all the rows in that result set would be updated.
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 -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top