IBM Information Server - How to pass parms in a select SQL

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Chandrathdsx
Participant
Posts: 59
Joined: Sat Jul 05, 2008 11:32 am

IBM Information Server - How to pass parms in a select SQL

Post by Chandrathdsx »

Hello,

I am trying to pass a where clause value to a relational/odbc/teradata connector stage.
Exampe: I want to extract data from Address table by passing the state-code and write it to a dataset. I want to pass the state-cd as a job parameter and override every time with a state value (like, MN, IL, NY etc) and run the same job using the passed state code to extract data for that state. Can anyone please help me with how to pass the state-code parameter in the SQL stmt where clause for any database stage? [I am trying this on Teradata connector..]

Thank you.
Chandu.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Have you tried using user-defined SQL and using the #Parameter Name# value in it?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Doesn't need to be 'user defined' to utilize a job parameter.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply