|
|
| Author |
Message |
Aniyaa
New User
Joined: 07 Dec 2007 Posts: 23 Location: Bangalore
|
|
|
|
Interview Qt :
How can I select more than one row without using a cursor in cobol-db2 batch program , using embedded sql. |
|
| Back to top |
|
 |
References
|
Posted: Thu Dec 27, 2007 6:15 pm Post subject: Re: Select more than one row without using a cursor |
 |
|
|
 |
stodolas
Senior Member
Joined: 13 Jun 2007 Posts: 647 Location: Wisconsin
|
|
|
|
| You can't. Unless you run a new select for each row with a where that will only return one row. |
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 498 Location: Richmond, Virginia
|
|
|
|
| COBOL allows selection into an array. |
|
| Back to top |
|
 |
Srihari Gonugunta
Active User
Joined: 14 Sep 2007 Posts: 164 Location: Pune
|
|
|
|
| I suppose, there is some MULTI-ROW fetch cursor option in DB2V8 and V9, I haven't tried though. |
|
| Back to top |
|
 |
Srihari Gonugunta
Active User
Joined: 14 Sep 2007 Posts: 164 Location: Pune
|
|
| Back to top |
|
 |
ksk
Active User
Joined: 08 Jun 2006 Posts: 275 Location: Pune, India
|
|
|
|
| Put query in Perform loop and move the values into array. |
|
| Back to top |
|
 |
priyamnavada
Active User
Joined: 24 Dec 2005 Posts: 57 Location: hyderabad
|
|
|
|
| perform the select query till the rows are not found. For each select place the data into the table. |
|
| Back to top |
|
 |
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 168 Location: Bangalore
|
|
|
|
| we cant select multiple row without using cursors in DB2-COBOL batch programs. |
|
| Back to top |
|
 |
vkphani
New User
Joined: 29 Oct 2003 Posts: 30
|
|
| Back to top |
|
 |
|
|