JPM_SQL_OPTION5=where to_char(PAY_END_DT,'YYYY') in ('2006','2007')
when i try to pass to restrict all rows to some,the job gets aborted showing error like the year was not declared properly,and displaying year with out quotes where to_char(PAY_END_DT,YYYY) in (2006,2007),in log the single quotes not getting displayed.
sequel error in ds
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 236
- Joined: Sun Apr 01, 2007 7:41 am
- Location: Michigan
That's not value SQL syntax:
should be:
Are you trying to pass in the WHERE clause as a job parameter called JPM_SQL_OPTIONS? I suggest you use proper notation.
Code: Select all
JPM_SQL_OPTION5=where to_char(PAY_END_DT,'YYYY') in ('2006','2007')
Code: Select all
WHERE to_char(PAY_END_DT,'YYYY') in ('2006','2007')
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle