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
 

 

about DB2 cursor

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: about DB2 cursor
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: 680
Location: NJ

PostPosted: Tue Jan 03, 2006 2:17 pm    Post subject: Cursors
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    Post subject: Re: about DB2 cursor
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    Post subject: hello pavan
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Release of Adabas Cursor mohitsethi All Other Mainframe Topics 1 Mon Feb 06, 2017 8:36 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am


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