MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Select statement in EZT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Brahmaputra Reddy
Beginner


Joined: 29 Feb 2004
Posts: 2
Topics: 1

PostPosted: Wed Mar 03, 2004 4:06 am    Post subject: Select statement in EZT Reply with quote

hi all,
i am using the select statement in the Easytrieve program and I am getting an error !

pls help me some in select statement in EZT !

I am using like this !

select field-name into host-varible from table name where col = host-var

is this correct or not pls confirm me any one !!
_________________
Thanks & Regards
C Brahmaputra Reddy


Last edited by Brahmaputra Reddy on Mon Mar 08, 2004 4:03 am; edited 1 time in total
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Wed Mar 03, 2004 9:00 am    Post subject: Reply with quote

Brahmaputra Reddy ,

Are you using a dynamic bind or STATIC bind in your program? If you are using dynamich bind then you need to define the sql statement as a cursor. You need to open , fetch and close the cursor.

For static bound programs you can use select column into host-variable directly.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Brahmaputra Reddy
Beginner


Joined: 29 Feb 2004
Posts: 2
Topics: 1

PostPosted: Fri Mar 05, 2004 12:14 am    Post subject: Reply with quote

Hi Kolusu,
I am using STATIC bind in the program.
executed as u said and got the result.
_________________
Thanks & Regards
C Brahmaputra Reddy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group