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 

SPUFI

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
s_shivaraj
Beginner


Joined: 21 Sep 2004
Posts: 140
Topics: 14
Location: Chennai, India

PostPosted: Tue Oct 05, 2004 6:17 am    Post subject: SPUFI Reply with quote

Very Happy
Hi FOLKS,

In one of the forum, i saw this question :

> I want to use a variable with a value in SPUFI which I will use in sql
> query. For ex:-

> set nam='mvs';
> select * from table_nam where name=nam;

I know we can do this SQL ( Orcale ), but is it possible in SPUFI , if possible how and if not why ?

Arrow
Cheers
Sivaraj S
Back to top
View user's profile Send private message AIM Address
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Oct 05, 2004 8:53 am    Post subject: Reply with quote

Sivaraj,

You cannot assign host variables in spufi. When you a run a sql query in spufi, you are actually running a dynamic sql. Spufi prepares the statement and then execuetes it for you. So you really cannot assign host variables in spufi. But you can do that in an application program.

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
s_shivaraj
Beginner


Joined: 21 Sep 2004
Posts: 140
Topics: 14
Location: Chennai, India

PostPosted: Wed Oct 06, 2004 2:05 am    Post subject: Reply with quote

Thanks Kolusu for your Information Razz
_________________
Cheers
Sivaraj S

'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity'
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database 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