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

How to get multiple rows without using cursor.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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: 148
Location: Ottawa Canada

PostPosted: Wed Jul 04, 2007 8:10 pm
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: 631
Location: Wisconsin

PostPosted: Wed Jul 04, 2007 8:13 pm
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

Moderator Emeritus


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

PostPosted: Wed Jul 04, 2007 9:03 pm
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
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
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

Moderator Emeritus


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

PostPosted: Wed Jul 04, 2007 10:16 pm
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
Reply with quote

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

Moderator Emeritus


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

PostPosted: Wed Jul 04, 2007 11:21 pm
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts Multiple INSPECTS on a big size file COBOL Programming 6
No new posts Comment multiple lines in JCL for Tem... JCL & VSAM 4
Search our Forums:


Back to Top