Error in ODBC stage but view data returns fine
Posted: Sat Nov 13, 2010 6:05 pm
Hi,
I have a simple job that goes from an ODBC stage to a transformer then a flat file.
I have a user defined SQL:
select #$mf_file_pfx1# || REQUEST.F_GET_MF_FILE_EXT ( CHAR(DATE(Current date),ISO), '' ) ||'~' || #$mf_file_pfx2# || REQUEST.F_GET_MF_FILE_EXT ( CHAR(DATE(Current date),ISO), '' ) as mf_Date_Qual from sysibm.sysdummy1
The two parameters are administrative variables defined as follows:
mf_file_pfx1 'BX5216.PPRP.DSOUT.VAL035.'
mf_file_pfx2 'BX5216.PPRP.DSOUT.VAL0001A.'
When I do a view data in the ODBC stage I get the proper results:
BX5216.PPRP.DSOUT.VAL035.D1045F~BX5216.PPRP.DSOUT.VAL0001A.D1045F
I compile the job and run but get the following fatal error when running:
main_program: [IBM][CLI Driver][DB2/AIX64] SQL0104N An unexpected token "|| REQUEST" was found following "6.PPRP.DSOUT.VAL035.". Expected tokens may include: "<identifier>". SQLSTATE=42601
Any ideas what is wrong?
Thanks - - John
I have a simple job that goes from an ODBC stage to a transformer then a flat file.
I have a user defined SQL:
select #$mf_file_pfx1# || REQUEST.F_GET_MF_FILE_EXT ( CHAR(DATE(Current date),ISO), '' ) ||'~' || #$mf_file_pfx2# || REQUEST.F_GET_MF_FILE_EXT ( CHAR(DATE(Current date),ISO), '' ) as mf_Date_Qual from sysibm.sysdummy1
The two parameters are administrative variables defined as follows:
mf_file_pfx1 'BX5216.PPRP.DSOUT.VAL035.'
mf_file_pfx2 'BX5216.PPRP.DSOUT.VAL0001A.'
When I do a view data in the ODBC stage I get the proper results:
BX5216.PPRP.DSOUT.VAL035.D1045F~BX5216.PPRP.DSOUT.VAL0001A.D1045F
I compile the job and run but get the following fatal error when running:
main_program: [IBM][CLI Driver][DB2/AIX64] SQL0104N An unexpected token "|| REQUEST" was found following "6.PPRP.DSOUT.VAL035.". Expected tokens may include: "<identifier>". SQLSTATE=42601
Any ideas what is wrong?
Thanks - - John