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

Select more than one row from a table using select query


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
murali_soorya
Warnings : 1

New User


Joined: 08 Mar 2005
Posts: 1
Location: Chennai

PostPosted: Mon May 30, 2005 6:04 pm
Reply with quote

Dear Friends,
I have one doubt please rectify it,
In Oracle(Rdbms) it is possible to Select more than one row from a table using select query where as in DB2(Rdbms) it throws an error of -811 why?
Back to top
View user's profile Send private message
vasanthanc

New User


Joined: 01 Apr 2005
Posts: 58

PostPosted: Tue May 31, 2005 11:02 am
Reply with quote

You can select more than one row in db2 also. But from where u tried to execute the query? In cobol program, u need to user cursor to traverse through the rows. Explain your problem in detail
Back to top
View user's profile Send private message
jkbytes

Active User


Joined: 19 Feb 2005
Posts: 139
Location: South Africa

PostPosted: Tue May 31, 2005 12:03 pm
Reply with quote

Hi murali,

You can select more than one row in DB2 using SPUFI,
but from the -811 its sure you are trying to retreive more than one row using DB2 - cobol program.
You can acheive it by means of defining a cursor, opening it then fetching it and finally closng it.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts DB2: Need helping below DB2 query DB2 13
No new posts Create table from List CLIST & REXX 8
No new posts Map VSAM Dataset to a Table/Tablespace DB2 2
No new posts COBOL Table data to a flat file with ... COBOL Programming 8
No new posts DB2 SQL query to read and update data... DB2 12
Search our Forums:

Back to Top