calling a .txt or .sql file 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
karthi_gana
Premium Member
Premium Member
Posts: 729
Joined: Tue Apr 28, 2009 10:49 pm

calling a .txt or .sql file in ODBC stage

Post by karthi_gana »

All,

I would like to call a .txt file (which contain some piece of sql code) from ODBC stage. is it possible? if yes, how?
Karthik
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As long as 'some piece' means 'the whole statement' then yes, you should be able to do that. The mechanism is documented, from what I recall off the top of my head there's either a specific "SQL File" option or you use custom sql with a {FILE} or [FILE] prefix before the pathname.
-craig

"You can never have too many knives" -- Logan Nine Fingers
satisht
Participant
Posts: 15
Joined: Tue Nov 07, 2006 4:41 pm

Post by satisht »

Hi Karthi,

If I am getting it right. You want to apply SQL code in your ODBC stage

from a .txt file.

I think there is an option in the Stage Tab to mention the SQL from file. Pls check the developers guide..........
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What does "call" mean in this context? For example, if you try to invoke a txt file from a CMD shell, nothing happens.
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