How to insert SQLSET type in descriptor?
First I prepare and declare cursor with bind variables:
select * from account where aco_no in ( ? ) and ..;
My goal is to replace '?' in open cursor with list of account ('123', '234'). Cursor for statement is prepared once (server start), and then is opened several times (service start) with different data (size of account list). My goal is to prepare cursor with IN() operator and pass account list as bind variable.
Open is by statement:
$OPEN :cur USING SQL DESCRIPTOR :descWhere;
Where descWhere is a descriptor created by service (set descriptor statements).
It's work well if i'm using simple types (SQLCHAR itp.) Exp:
$SET DESCRIPTOR :desc VALUE :size
TYPE = :type,
LENGTH = :NO_LEN;
$SET DESCRIPTOR :desc VALUE :size
DATA = :szBuffor;
How to insert into descriptor types SQLSET, SQLLIST, .. and if it can be done is it work witch IN() operator?