How to call stored procedure in transformer stage

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
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

How to call stored procedure in transformer stage

Post by jpraveen »

Hi,

I am using Datastage7.5.3.
How to call stored procedure in Transformer stage, is there any logic or alternative methods for this.
I need to call the stored procedure in my requirements.

Source(File) -->Transformer(STP called) -->Target(Teradata) - Will this work?

(And)

How to check the stored procedure whether it is working or not (By using the Datastage stages)which is written in teradata?

Please provide valuable information.
Last edited by jpraveen on Thu Feb 10, 2011 1:37 am, edited 2 times in total.
Jaypee
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why not use the Stored Procedure stage?
-craig

"You can never have too many knives" -- Logan Nine Fingers
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Post by jpraveen »

Craig,

In Datastage7.5.3 the stored procedure stage will not support the Teradata database.
Jaypee
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not navitely but could you not do so via ODBC?
-craig

"You can never have too many knives" -- Logan Nine Fingers
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Post by jpraveen »

Hi

In ODBC stage we can select the table or we can write user-defined SQL,
my requirement is to run a teradata SP from datastage.can you explain briefly how to do so?
Jaypee
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I was thinking the SP stage had an ODBC option for 'Vendor' but on examining the docs that seems to be... incorrect.

Can you go into a little more detail on your need here? What does the proc do? Do you need to execute it only once? Or once per row? The latter is going to be quite painful from a performance standpoint, so I'm wondering what kind of alternatives might be viable here.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jpraveen
Participant
Posts: 71
Joined: Sat Jun 06, 2009 7:10 am
Location: HYD

Post by jpraveen »

Criag,

thanks for helping me about your valuble inputs.

A procedure is a specified series of actions or operations which have to be executed in the same manner in order to always obtain the same result under the same circumstances.

Let me know if i am wrong.
I have a requirement like i need to call a stored procedure in datastage job to test whether it is calling and working correctly or not?
and the DB is Teradata, DS is 7.5.3.

I am thinking in some alternative for this, but not connecting to it exactly the requirement.
Jaypee
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I was wondering what exactly your proc, the one that you need to call does, not what one does in general. :wink:

I feel it would help to know what it does in order to help with the "how do I test it is working correctly" part.
-craig

"You can never have too many knives" -- Logan Nine Fingers
just4geeks
Premium Member
Premium Member
Posts: 644
Joined: Sat Aug 26, 2006 3:59 pm
Location: Mclean, VA

Post by just4geeks »

Hi JPraveen,

Can you please let me know the solution to you issue?
As I am facing a similar issue.


Thanks In Advance.
Attitude is everything....
Post Reply