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

SQLDA can have both Host variables and columns


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

New User


Joined: 26 Apr 2007
Posts: 12
Location: Mysore

PostPosted: Tue Jun 19, 2007 2:27 pm
Reply with quote

Hi all,

Can it be possible to use the same SQLDA for the holding the Columns
details and the Host variables.

Code:


SQL Code in WS-SQL-STATEMENT ....................
EXEC SQL
       SELECT  CAST(? AS CHAR(10)), CAST(? AS INTEGER)
       FROM    TABLE1
       WHERE  EMP-NO = ?
END-EXEC

EXEC SQL
       PREPARE  SQLQERY INTO:SQLDA FROM  :WS-SQL-STATMENT
END-EXEC


EXEC SQL
       EXECUTE  SQLQERY USING :SQLDA
END-EXEC


Can the SQLVAR contain the Column Description as well as Host variables
description to be passed to the SQL Statement.

Back to top
View user's profile Send private message
Suryanarayana.tadala

New User


Joined: 03 Nov 2005
Posts: 43
Location: St.Louis

PostPosted: Sat Jun 23, 2007 1:44 am
Reply with quote

Yes
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 count contained values of several col... DB2 5
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 Remote Unload of CLOB Columns DB2 6
Search our Forums:


Back to Top