Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us