Procedure Calling

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
ORACLE_1
Premium Member
Premium Member
Posts: 35
Joined: Mon Feb 16, 2009 1:19 pm

Procedure Calling

Post by ORACLE_1 »

A beginner in Datastage -

That being said I saw lots of posts on running Stored Procedures in Datastage but still I am not very clear on it.

All I what want to do is run the following procedure the simplest way possible -

exec DBMS_CDC_SUBSCRIBE.extend_window(SUBSCRIPTION_NAME => 'abc') ;

Do I do it in Database Stage , Server Job , Seqeunce Job , Command , SP stage etc.?

Thanks in Advance !!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Stored Procedure stage, surely?

At least most of the time. A stored procedure that deals with a recordset might be included in a database stage type, such as ODBC stage.
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 »

jinm wrote:Instead of raising a new topic I just takes this one hostage...
Bad idea. I've moved your takeover attempt to its own topic.
-craig

"You can never have too many knives" -- Logan Nine Fingers
qutesanju
Participant
Posts: 373
Joined: Tue Aug 26, 2008 4:52 am

Post by qutesanju »

you can call a SP using ODBC stage /command stage/stored procedure stage also
1.ODBC is simplest way to call backend SP
2. in command stage you have to write a code in batch file to call SP and call this batch file in command stage
ORACLE_1
Premium Member
Premium Member
Posts: 35
Joined: Mon Feb 16, 2009 1:19 pm

Post by ORACLE_1 »

Created a SP in the database which is based on the package which I mentioned.

And Now i do simple call from DRS in my job in the post SQL stage.

Thanks for all your help guys !
Post Reply