Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DB2 Select without using cursors in Eazytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: DB2 Select without using cursors in Eazytrieve
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    Post subject: "SELECT INTO" IS VALID ONLY FOR SQLSYNTAX OF NONE
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7307

PostPosted: Tue Aug 23, 2011 1:19 am    Post subject:
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

Site Director


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

PostPosted: Tue Aug 23, 2011 9:42 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Select first 2 group data vice_versa DFSORT/ICETOOL 10 Mon Jun 13, 2016 2:21 pm
No new posts Query to select Null row on priority RahulG31 DB2 24 Thu Jan 21, 2016 5:45 pm
No new posts Can I use sort to select sample recor... Steve Ironmonger DFSORT/ICETOOL 3 Tue Nov 10, 2015 10:02 pm
No new posts Performance issue in the DB2 program ... Pradst57 DB2 19 Mon Oct 12, 2015 8:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us