SQL Server stored procedure

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
xch2005
Participant
Posts: 85
Joined: Fri Apr 29, 2005 3:13 am
Location: India

SQL Server stored procedure

Post by xch2005 »

Hi,

We have been converting the Sybase source to SQL Server source in our DS parallel jobs (DataStage 7.5.1) and we encountered an issue when tried to convert the stored proc. used earlier in Sybase to now with the SQL Server ones.

It was used with Stored procedure stage (STP) in the jobs, unfortunately the STP does not support SQL Server. We can use the ODBC stage (server job) to execute the stored proc but there is a limitation that if there is return value from the proc.

We did try to use ODBC and was successful when there are no input/output parameters but failed when there are these parameters.

Please let us know if any of you had workaround for this in DS 7.5.1.

Though in couple of post i saw that it was mentioned as possible but the steps were not there.
Appreciate your help on this.

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

Post by chulett »

As noted, you can use ODBC if there are input parameters but there's no way to return anything more than a status to the job. Seems to me you need to look into doing something from the command line, a script to call whatever CLI you have for SQL Server. This will be complicated by the fact that your server is on UNIX while the procedure in question will be running on a Windows server. :?

Hopefully someone has done this before and has some words of wisdom for you. I haven't.
-craig

"You can never have too many knives" -- Logan Nine Fingers
xch2005
Participant
Posts: 85
Joined: Fri Apr 29, 2005 3:13 am
Location: India

Post by xch2005 »

To achieve we moved on to DataStage 8.5 and now it is all set.

Thanks
Post Reply