sequel error in ds

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
just4u_sharath
Premium Member
Premium Member
Posts: 236
Joined: Sun Apr 01, 2007 7:41 am
Location: Michigan

sequel error in ds

Post by just4u_sharath »

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.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

That's not value SQL syntax:

Code: Select all

JPM_SQL_OPTION5=where to_char(PAY_END_DT,'YYYY') in ('2006','2007') 
should be:

Code: Select all

WHERE to_char(PAY_END_DT,'YYYY') in ('2006','2007') 
Are you trying to pass in the WHERE clause as a job parameter called JPM_SQL_OPTIONS? I suggest you use proper notation.
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
Post Reply