Conditional in Netezza Connector

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
kld05
Charter Member
Charter Member
Posts: 36
Joined: Fri Apr 28, 2006 8:12 am

Conditional in Netezza Connector

Post by kld05 »

Is it possible use a conditional in the connector stage to execute a different query based the value of a variable? The BEGIN WORK clause is throwing an error when I try.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not sure but might depend on your definition of 'conditional' - can you give us some examples of what you'd want to do based on a variable? What would vary? Do they all have the same metadata?

<edit: removed bogus target suggestion>
Last edited by chulett on Sun Sep 07, 2014 9:45 am, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kld05
Charter Member
Charter Member
Posts: 36
Joined: Fri Apr 28, 2006 8:12 am

Post by kld05 »

I am trying to implement something similar to the following logic which works in Sybase. The metadata is identical.

IF <Condition>

BEGIN

Sql1

END

ELSE

BEGIN

Sql2

END
Post Reply