Hello!
I am trying to convert a stored procedure written in oracle in a transformation. The stored procedure consists of vairable declarations and SQL code consists of an insert into statment which inserts about 300 columns into a table, and then a select statement which selects same number of columns to extract from different tables and insert into the previously mentioned table.
INSERT INTO EQTY_GTR_POSITION_PSA_R
(
PSA_POSITION_ID,
...........................
...........................
..............................
)
SELECT
PSA_POSITION_ID,
................
.................
..................
FROM EQTY_GTR_POSITION_PSA
WHERE MOST_RECENT_POSITION_FL <> 'N'
AND (MOST_RECENT_POSITION_FL = 'Y' OR UPDATE_TS > FROMTSTAMP.
where FROMTSTAMP is a defined variable. When i run this transformation as putting select code in an input table and insert into code in an out table. I get the error, FROMTSTAMP is an invalid idenitifer. Any idea how i can define the definition of FROMTSTAMP in the transformation?
I am trying to convert a stored procedure written in oracle in a transformation. The stored procedure consists of vairable declarations and SQL code consists of an insert into statment which inserts about 300 columns into a table, and then a select statement which selects same number of columns to extract from different tables and insert into the previously mentioned table.
INSERT INTO EQTY_GTR_POSITION_PSA_R
(
PSA_POSITION_ID,
...........................
...........................
..............................
)
SELECT
PSA_POSITION_ID,
................
.................
..................
FROM EQTY_GTR_POSITION_PSA
WHERE MOST_RECENT_POSITION_FL <> 'N'
AND (MOST_RECENT_POSITION_FL = 'Y' OR UPDATE_TS > FROMTSTAMP.
where FROMTSTAMP is a defined variable. When i run this transformation as putting select code in an input table and insert into code in an out table. I get the error, FROMTSTAMP is an invalid idenitifer. Any idea how i can define the definition of FROMTSTAMP in the transformation?