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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Increase the number of columns in the... IBM Tools 3
No new posts DB2 Views with Multiple SQL & Col... DB2 8
No new posts access the last host command CLIST & REXX 2
No new posts JCL with variables JCL & VSAM 1
Search our Forums:

Back to Top