Originally posted by: Arun Ramamurthy
You could try something as below:
Dblookup(
Begin
<SQL_stmnt1>;
<SQL_Stmnt2>;
End;
,
"-MDQ <MDQ> -DBNAME <dbname> " )
example:
VALID(
DBLOOKUP("Begin insert into <table1> values(a,b);insert into tabl2 values(a,b); end;" ,"-MDQ <mdqname> -DBNAME <dbname> -T")
,FAIL("DB failed"))
This may work depending on the driver I guess , not sure. Also I am not sure if this would work for select statements.
Or you could try putting all the sql statements in a stored procedure and call the stored procedure from the WTX map rule.
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange