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
 

 

How to get multiple rows without using cursor.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sanjib234
Currently Banned

New User


Joined: 19 Jun 2007
Posts: 12
Location: delhi

PostPosted: Wed Jul 04, 2007 7:57 pm    Post subject: How to get multiple rows without using cursor.
Reply with quote

Can anyone help me how to select multiple rows without using cursor. icon_smile.gif
Back to top
View user's profile Send private message

TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 149
Location: Ottawa Canada

PostPosted: Wed Jul 04, 2007 8:10 pm    Post subject:
Reply with quote

There is no sensible way to select multiple rows without using a cursor.

Use the cursor.

By the way, why do you want to avoid the cursor?
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Jul 04, 2007 8:13 pm    Post subject:
Reply with quote

In COBOL? You can't. There is not a way to pull a series of rows back into any kind of working storage all at once. You could create a cursor and do repeated fetches filling a working storage table. But, thats about the best you will get.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jul 04, 2007 9:03 pm    Post subject:
Reply with quote

Hello,

As was asked before, why do you not want use a cursor?

You will find that somewhere between many and most coding situations work with multiple rows and therefore use a cursor.
Back to top
View user's profile Send private message
sanjib234
Currently Banned

New User


Joined: 19 Jun 2007
Posts: 12
Location: delhi

PostPosted: Wed Jul 04, 2007 10:06 pm    Post subject:
Reply with quote

Thnx alot .....this question was from CTS icon_smile.gif
Back to top
View user's profile Send private message
sanjib234
Currently Banned

New User


Joined: 19 Jun 2007
Posts: 12
Location: delhi

PostPosted: Wed Jul 04, 2007 10:08 pm    Post subject:
Reply with quote

[quote="sanjib234"]Thnx alot .....this question was from CTS icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jul 04, 2007 10:16 pm    Post subject:
Reply with quote

You're welcome icon_smile.gif

FMI (for my info) - what is CTS?
Back to top
View user's profile Send private message
sanjib234
Currently Banned

New User


Joined: 19 Jun 2007
Posts: 12
Location: delhi

PostPosted: Wed Jul 04, 2007 10:26 pm    Post subject:
Reply with quote

CTS stands for Cognizant
icon_smile.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jul 04, 2007 11:21 pm    Post subject:
Reply with quote

Thanks icon_smile.gif
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 DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
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 Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Row-Numbers of distinct rows? Auryn DB2 1 Thu Oct 20, 2016 4:38 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm


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