Converting Stored Procedure to DataStage Jobs

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
dganeshm
Premium Member
Premium Member
Posts: 91
Joined: Tue Aug 11, 2009 3:26 pm

Converting Stored Procedure to DataStage Jobs

Post by dganeshm »

Hi ,

I have been given a new assignment to convert stored procedures to jobs. Do you guys really think its advisable to convert a MS SQL Procedure to a DataStage Job ?
Regards,
Ganesh
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure, why not? Once in a great while you'll find things done in a proc that are difficult to do in a job but otherwise it should all be perfectly feasible and make them (typically) much easier to maintain... or at least you can pawn it off on the ETL folks afterwards rather than having to bother the procedure writers. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
apierro1
Participant
Posts: 12
Joined: Thu Nov 13, 2008 8:50 am

Re: Converting Stored Procedure to DataStage Jobs

Post by apierro1 »

dganeshm wrote:Hi ,

I have been given a new assignment to convert stored procedures to jobs. Do you guys really think its advisable to convert a MS SQL Procedure to a DataStage Job ?
It depends on the stored procedure,

Without knowing what the stored procedure does it's hard to determine if it should be converted but if your reading/writing different databases on different servers than I would advise re-writing it in DataStage as that is the purpose of ETL tools.

Obviously you could write a DataStage job to run the stored procedure or re-write the stored procedure in a DataStage job. Creating a DataStage job will be easier to maintain and document.
Thanks,

Anthony
dganeshm
Premium Member
Premium Member
Posts: 91
Joined: Tue Aug 11, 2009 3:26 pm

Post by dganeshm »

Mostly it is metric calculation done on a weekly basis used as a planning tool.. so its gonna read from and write to the same database.
Regards,
Ganesh
apierro1
Participant
Posts: 12
Joined: Thu Nov 13, 2008 8:50 am

Post by apierro1 »

dganeshm wrote:Mostly it is metric calculation done on a weekly basis used as a planning tool.. so its gonna read from and write to the same database.
Performace wise it will probably be the same or close to it but from a documentation and maintenance standpoint you will be better off having it in DataStage.
Thanks,

Anthony
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

ETL server could be at higher end for few transformation and Metric calculations. And hence you might achieve the performance boost.
The trick is, you ll have to find the list of statements that has to be executed in ETL box and the ones that has be executed in DB box for better performance.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

kumar_s wrote:The trick is, you ll have to find the list of statements that has to be executed in ETL box and the ones that has be executed in DB box for better performance.
Ah, that sounds like the "balanced optimization" feature coming in the next version!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dganeshm
Premium Member
Premium Member
Posts: 91
Joined: Tue Aug 11, 2009 3:26 pm

Post by dganeshm »

Started working on the assignment..going ahead with Stored Procedures..thanks for all of your opinions guys..
Regards,
Ganesh
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

ray.wurlod wrote:
kumar_s wrote:The trick is, you ll have to find the list of statements that has to be executed in ETL box and the ones that has be executed in DB box for better performance.
Ah, that sounds like the "balanced optimization" feature coming in the next version!
That sounds interesting!! Is that in 8.5?
Does Datastage going to segregate the list of SQLs that need to run on ETL server?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The "next version" does not yet have a version number, for legal reasons.
I don't have any details about Balanced Optimizer with me - if you have access to the IOD 2009 or IOD 2010 Europe presentations you can probably get some knowledge about what's planned. Or go to IOD 2010 in Las Vegas in October.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply