SQL Runing On Several Tables

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
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

SQL Runing On Several Tables

Post by snassimr »

Hi !

I have question . I have asked it before but havent got reasonable answer.

After I run 5 Jobs with Sequencer . I want to Enter each of 5 Tables specific row with with specific key. I wrote sp but "Stored Procedure Stage" have to be with Output or Input Link and I want to run the sp and thatis it.

Any ideas how to do it ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Maybe you haven't gotten a 'reasonable answer' because your question is practically incomprehensible. :?

Going off the "I want to run sp and thatis it" part, why not just write a batch file to call your sql tool of choice and execute the stored procedure? Run it from a Routine Activity stage in the Sequencer job using 'DSExecute'. For example, if Oracle then you would use 'sqlplus' to do the dirty work.

Does that seem reasonable?
-craig

"You can never have too many knives" -- Logan Nine Fingers
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post by snassimr »

Te sp will be invoked from batch . Is there is way to do it from Datastage ?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Depending on what the stored procedure does you may be able to call it from an ODBC stage (or more than one).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post by snassimr »

My sp Inserts one row into 5 table . Is there is way to call sp within VB code
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is there is way to call sp within VB code?

Probably, but the answer won't be found on a DataStage forum.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Besides, why make it more complicated than it needs to be? What's wrong with scripting something to execute the sp and triggering that inside your Sequencer job via a Routine Activity? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post by snassimr »

"scripting something to execute the sp "

How to do this ?
Post Reply