DS warnings related to CASE expression

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
tulasi
Participant
Posts: 6
Joined: Tue Sep 04, 2007 2:13 am
Location: chennai

DS warnings related to CASE expression

Post by tulasi »

hi all,
i am getting the below fatal error while running the DS job:
Caught parsing exception during wrapDescribeOperator(): Expected identifier, got: <CASE expression>

Job detaisl:loading from TD connector stage to flat file.
TD connector contains complex SQL quey which contains CASE expressions.

please help me on the above issue:


thanks,
tulasi.
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi,

Try to run your Teradata SQL in SQL Assistant. Once it goes through use it in TD Connector. There seems to be a problem with your SQL.

HTH
--Rich
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Does the SQL run successfully outside DS ?
tulasi
Participant
Posts: 6
Joined: Tue Sep 04, 2007 2:13 am
Location: chennai

Post by tulasi »

i ran this query successfully in teradata SQL assistant. it ran fine.but in datastage it is giving the above problem.

please suggest me
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Do you have any parameter near the case structure?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can you (or your DBA) monitor the Teradata session to establish exactly what SQL is being received from the connector? It may not, for example, be the CASE that is the problem - it may be that some prior quotes are being stripped out of the query.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply