SQL query in routine activity stage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
krisp321
Participant
Posts: 39
Joined: Thu Mar 04, 2010 12:39 am

SQL query in routine activity stage

Post by krisp321 »

Hi

I have a routine which generates some report based on requirements. Now I just want to add some query to that routine, to get some additional statistics from a database table which should go into that file.

So, can I execute an SQL query in routine activity stage.
If so, can you please help me how to do that

thanks in advance
kris
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

Better write one unix script ,in that call your sql query through sql plus. Call the same unix script from execute command activity.
Srinu Gadipudi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes, you can execute SQL from a routine but it is on the complex side which a search here for "BCI" would reveal. Easier to leverage the command line interface (like sqlplus in Oracle) via DSExecute().
-craig

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