Quantcast
Channel: Pentaho Community Forums - BI Platform
Viewing all articles
Browse latest Browse all 2893

Using a stored procedure in transformation

$
0
0
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?

Viewing all articles
Browse latest Browse all 2893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>