How can i use an SQL SP in a Job

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
avidal18
Participant
Posts: 10
Joined: Wed Apr 19, 2006 4:20 pm
Location: Mexico

How can i use an SQL SP in a Job

Post by avidal18 »

I'd like to know how can i call a Stored Procedure in a job, i want to use the stage StoredProcedure, but this only have the option of uns Oracle SP, and i want to call a SQL SP, thanks for your answers.

:?
diamondabhi
Premium Member
Premium Member
Posts: 108
Joined: Sat Feb 05, 2005 6:52 pm
Location: US

Post by diamondabhi »

You can use SP stage in 7.5, if not you may be able to use a non-ODBC stage's Before-SQL tab to issue a CALL statement. Search the forum lot of info is present for SP.
Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

Hi,

If there is no return from stored procedure then we can use ODBC Stage to run. Just select user defined sql and ..

Exec StoredProcedure_Name(Parm1,Parm2)


Thanks,

--Anupam
avidal18
Participant
Posts: 10
Joined: Wed Apr 19, 2006 4:20 pm
Location: Mexico

Post by avidal18 »

Thank you, very much, finally y found the answered to my problem a head in the forum....greetings. :wink:

------------------------
Angel Martinez
Mexico
Post Reply