Calling a Job in transformer

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
jeraj4k6
Premium Member
Premium Member
Posts: 2
Joined: Mon Jan 22, 2007 6:35 am
Location: Singapore
Contact:

Calling a Job in transformer

Post by jeraj4k6 »

Hey All,

Could any one help me in this requirement pls,
I wanna run a job for each and every row from the input source record, so when i call a job inside a transformer means i can accomplish that. Any one pls help me out in doing this.

Thanks in advance
Thanks,

Regards,
Thangaraj.R.A.J
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There is a UtilityRunJob() function that will do that for you. You can search here or in your local documentation for that name to find the syntax, usage examples, etc.

Not positive, but you may need to use a Server job for this... I'm sure someone can confirm/deny.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jeraj4k6
Premium Member
Premium Member
Posts: 2
Joined: Mon Jan 22, 2007 6:35 am
Location: Singapore
Contact:

Post by jeraj4k6 »

Hi Craig,

Thanks much for the reply its very useful to find something, but need 1 clarification is that UtilityRunJob() or DSRunJob() , please advice.
Thanks,

Regards,
Thangaraj.R.A.J
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, it's UtilityRunJob. DSRunJob is the function that you'd use in a BASIC job control routine and what a Sequence job uses in the code it generates. You could, of course, write something that leveraged that in a similar manner but why bother when UtilityRunJob does all that automagically for you? :wink:

In the 7.x release, you can find it documented in the Server Job Developer's Guide pdf, perhaps elsewhere.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In a parallel job you will need a BASIC Transformer stage - UtilityRunJob() can not be called from a parallel Transformer stage. Or you can use a server job.
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