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

DB2 Select without using cursors in Eazytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gayathrinag

New User


Joined: 16 Oct 2008
Posts: 37
Location: chennai

PostPosted: Mon Aug 22, 2011 2:39 pm
Reply with quote

Hi,

Can you please let me know whether it is possible to select a row in db2 tables without using cursors in Eazytrieve. If yes can you please tell me sample program... or the syntax and how it works ?

Thanks
Back to top
View user's profile Send private message
gayathrinag

New User


Joined: 16 Oct 2008
Posts: 37
Location: chennai

PostPosted: Mon Aug 22, 2011 4:01 pm
Reply with quote

"SELECT INTO" IS VALID ONLY FOR SQLSYNTAX OF NONE AND STATIC-ONLY BIND

I am getting above error when i use PARM SSID(DSN)... when i use
SELECT INTO
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Aug 23, 2011 1:19 am
Reply with quote

At the risk of repeating myself (I've always wondered, what risk?). Look at the CA Products forum here, where your post is. Just click on it. Follow advice on the question from last week.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Aug 23, 2011 9:42 am
Reply with quote

Hello,

Quote:
Can you please let me know whether it is possible to select a row in db2 tables without using cursors in Eazytrieve.
As far as i know it is. . .

The same restriction applies - if the found set returns more than one row, an sql error code is raised. Pretty much just line in cobol.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Dynamically pass table name to a sele... DB2 2
No new posts SELECT from data change table DB2 5
No new posts Select two different counts from SQL... DB2 6
No new posts Select a DB2 value in a specific deci... DB2 4
No new posts How can I select certain file dependi... JCL & VSAM 12
Search our Forums:

Back to Top