Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

Syntax issue in script

$
0
0

Hi All,

 

Please correct my syntax below, In debug mode the below is throwing error.

 

$GV_SQL = 'select distinct FILE_TYPE from ADMIN.SCH_EXE_HISTORY a where a.CYC_DATE = [$GV_DATE_CYC] and status = \'TRANSMITTED\' and file_type in (\'REV\',\'AUM\')';

 

 

251664112746272DBS-0704046/19/2015 1:04:21 PMSQL submitted to ODBC data source <apex> resulted in error <[IBM][CLI Driver][DB2/AIX64] SQL0104N  An unexpected token
251664112746272DBS-0704046/19/2015 1:04:21 PM"status = 'TRANSMITTED'" was found following "a.CYC_DATE =  and".  Expected tokens may include:  "<space>".  SQLSTATE=42601
251664112746272DBS-0704046/19/2015 1:04:21 PM>. The SQL submitted is <select distinct FILE_TYPE from ADMIN.SCH_EXE_HISTORY a where a.CYC_DATE =  and status =

Viewing all articles
Browse latest Browse all 3719

Trending Articles



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