Handling Query in ODBC stage

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
kannantechno
Participant
Posts: 9
Joined: Tue Feb 16, 2010 1:18 am

Handling Query in ODBC stage

Post by kannantechno »

Hi All,
Need input for this requirement, in which we need to have a source query in any file can say configuration file for the job, from which need to pass the query to ODBC stage instead of hardcode the query in ODBC stage itself.

Thanks,
Kannan
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You can use job parameters to pass in dynamic query statements for the ODBC stage.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There should be (I believe) an option to reference the sql filename in the stage and have it read it in at runtime. You need to do something like prefix it with {FILE} but I'm not positive of the syntax. A search with the proper terms should turn something up as we've discussed this before.
-craig

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