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

about DB2 cursor


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Tue Jan 03, 2006 2:03 pm
Reply with quote

Hi,

Any way to handle the condition where embedded select returning more than one row other than using the cursor.


thnx in advance...............

pavan
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue Jan 03, 2006 2:17 pm
Reply with quote

Hi pavan,
Cursors are the option used in Embedded SQL to retrive more than one rows i dont think there is any alternative option avail...
Back to top
View user's profile Send private message
mijanurit
Currently Banned

New User


Joined: 26 Aug 2005
Posts: 33
Location: bangalore

PostPosted: Sat Jan 07, 2006 11:07 am
Reply with quote

hi i413678,

if u use c or other high level language then there is other alternative ways to retrieve more than 1 row at a time through select statement.

but as COBO ,PL/I they don't have capability to retrieve more than one row at a time, cursor is introduced.
hence in COBOL, PL/I to retrieve more than one row cursor is the only way.

regards
mijanurit
Back to top
View user's profile Send private message
manjinder

New User


Joined: 04 Dec 2005
Posts: 45
Location: pune

PostPosted: Sat Jan 07, 2006 11:08 am
Reply with quote

i think only cursor in the way to handle this condition otherwise you can check this out giving two condition in the query.
regards...
manjinder
correct me if wrong
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Is SQLCODE -811 possible while fetchi... DB2 1
No new posts Restart logic by using cursor name in... DB2 1
No new posts Seeking Resolution for SQKCODE -991 o... DB2 2
No new posts Multiple rows within Cursor when Coun... DB2 14
No new posts Dynamic cursor name in Cobol program COBOL Programming 1
Search our Forums:

Back to Top