Posted: Sun Mar 07, 2010 9:38 pm Post subject: Calling ESQL function in mapping
Novice
Joined: 19 May 2009 Posts: 14
Hi All,
I have created this function in .esql file.
The function is called in mapping where AccountNumber is being set with the returned value of the function. The data type of the AccountNumber is string.
CREATE FUNCTION GetAccount(stan CHARACTER) RETURNS CHARACTER
BEGIN
DECLARE varAccount CHARACTER;
DECLARE varRow ROW;
SET varRow.FOO[] = SELECT ITEM V.FROM_ACC FROM
--Database.{DATABASE_SOURCE}.{DATABASE_SCHEMA}.CVWPHX_TRAN_RECORD AS V
Database.ORCL.INTFCJ.CVWPHX_TRAN_RECORD AS V
WHERE V.STAN = stan;
SET varAccount = CAST(varRow.[1] AS CHARACTER);
RETURN varAccount;
END;
.bar file is build successfully but isn't deployed.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum