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

use of host variables while preparing dynamic sqls in DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kulkarni_alok

New User


Joined: 07 Jul 2005
Posts: 4

PostPosted: Thu Jul 07, 2005 7:43 pm
Reply with quote

Hi,

Can any one guide me on how we can use the Host variables while preparing dynamic sqls or can we do the following

String " where my_name = :name"
delimited by size into stmt.

exec sql
prepare s from : stmt
end exec.
Back to top
View user's profile Send private message
kulkarni_alok

New User


Joined: 07 Jul 2005
Posts: 4

PostPosted: Thu Jul 07, 2005 7:44 pm
Reply with quote

kulkarni_alok wrote:
Hi,

Can any one guide me on how we can use the Host variables while preparing dynamic sqls or can we do the following

String " where my_name = :name"
delimited by size into stmt.

exec sql
prepare s from : stmt
end exec.


do we really have to use parameter markers before preparing the sqls
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Any way to prevent dynamic allocation? DFSORT/ICETOOL 6
No new posts Substitution of JCL variables CLIST & REXX 10
No new posts Repeat n times by substuting SEQNUM i... DFSORT/ICETOOL 2
No new posts Preserve changes to ISPF Panel Variables TSO/ISPF 5
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
Search our Forums:


Back to Top