User-Defined SQL File
Posted: Fri Dec 19, 2008 10:28 am
I have an ETL job where i need to use a SQL file in the User Defined SQL section of a DRS Stage for a DB2 Database. In the DRS Stage Under the General Tab -> Query Type -> User-Defined SQL query file is selected and i give the SQL file path under User-Defined section in the SQL tab.
{File}/home/acrwrb2/test.sql
I have tried giving the path with and without {File} option but keep getting a message
=========================================
Executing SQL statement '{File}/home/acrwrb2/test.sql'
Error executing statement '{File}/home/acrwrb2/test.sql'. See following database message for details.
[IBM][CLI Driver] CLI0118E Invalid SQL syntax. SQLSTATE=37000
Error occurred during link open processing.
============================================
Looks like it is not executing the SQL in the file. I also tried giving the path in the table name section but get the same error.
Thanks
{File}/home/acrwrb2/test.sql
I have tried giving the path with and without {File} option but keep getting a message
=========================================
Executing SQL statement '{File}/home/acrwrb2/test.sql'
Error executing statement '{File}/home/acrwrb2/test.sql'. See following database message for details.
[IBM][CLI Driver] CLI0118E Invalid SQL syntax. SQLSTATE=37000
Error occurred during link open processing.
============================================
Looks like it is not executing the SQL in the file. I also tried giving the path in the table name section but get the same error.
Thanks