Call sql from remote location into ETL

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
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

Call sql from remote location into ETL

Post by pavan_test »

Hi All,

I have a sql in a test file in a remote location. (on the datastage server).

Can someone please suggest me if there is any way I can call this sql in ETL job and run it using oracle enterprise edition (we have Oracle as source and target) and write the output.

we want to keep the sql in remote location because if any changes to that sql we need not have to change the ETL job.

Thanks
pavan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How is on the DataStage server a "remote" location? If it is local to the DataStage server in any fashion, you can easily leverage it by using the SQL File option in the stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
pavan_test
Premium Member
Premium Member
Posts: 263
Joined: Fri Sep 23, 2005 6:49 am

Call sql from remote location into ETL

Post by pavan_test »

Actually the file will be local to the datastage server. where can I find the sql file option in the Oracle Enterprise edition stage.

Thanks
Pavan
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If you can't find that actual option (not all stages have it) then use the {FILE} methodology noted here and elsewhere.
-craig

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