There is. Here is my full code which works:
Select RATE_TYPE_N, CURRENCY_ALPHA_C, USD_EXCH_RATE_START_Y, USD_EXCHANGE_RATE_Q, EXPIRE_Y, EFF_OUT_Y
from TERAVIEW.EXCH_RATE_VW
Where CURRENCY_ALPHA_C = 'EUR' AND
RATE_TYPE_N like 'TREND%' and
EXTRACT(YEAR from (EFF_OUT_Y))=9999
As soon as I add the last line I need:
Select RATE_TYPE_N, CURRENCY_ALPHA_C, USD_EXCH_RATE_START_Y, USD_EXCHANGE_RATE_Q, EXPIRE_Y, EFF_OUT_Y
from TERAVIEW.EXCH_RATE_VW
Where CURRENCY_ALPHA_C = 'EUR' AND
RATE_TYPE_N like 'TREND%' and
EXTRACT(YEAR from (EFF_OUT_Y))=9999 AND
CAST(EXCH_RATE_START_Y as date FORMAT 'YYYY-MM-DD') < CAST('2013-03-26' as date FORMAT 'YYYY-MM-DD')
I receive this error: DSRA9110E: Connection is closed.
I did just ask our Admin whom setup the jdbc connection if there was some kind of BTEQ Mode configuration that could be shut off. So perhaps I need to ask him to Disable Parsing? That should resolve?
There is. Here is my full code which works:
Select RATE_TYPE_N, CURRENCY_ALPHA_C, USD_EXCH_RATE_START_Y, USD_EXCHANGE_RATE_Q, EXPIRE_Y, EFF_OUT_Y
from TERAVIEW.EXCH_RATE_VW
Where CURRENCY_ALPHA_C = 'EUR' AND
RATE_TYPE_N like 'TREND%' and
EXTRACT(YEAR from (EFF_OUT_Y))=9999
As soon as I add the last line I need:
Select RATE_TYPE_N, CURRENCY_ALPHA_C, USD_EXCH_RATE_START_Y, USD_EXCHANGE_RATE_Q, EXPIRE_Y, EFF_OUT_Y
from TERAVIEW.EXCH_RATE_VW
Where CURRENCY_ALPHA_C = 'EUR' AND
RATE_TYPE_N like 'TREND%' and
EXTRACT(YEAR from (EFF_OUT_Y))=9999 AND
CAST(EXCH_RATE_START_Y as date FORMAT 'YYYY-MM-DD') < CAST('2013-03-26' as date FORMAT 'YYYY-MM-DD')
I receive this error: DSRA9110E: Connection is closed.
I did just ask our Admin whom setup the jdbc connection if there was some kind of BTEQ Mode configuration that could be shut off. So perhaps I need to ask him to Disable Parsing? That should resolve?