Parallel Routine

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
Sairam
Participant
Posts: 42
Joined: Tue Nov 11, 2003 1:09 pm

Parallel Routine

Post by Sairam »

Hi

I need a simple parallel routine to be wriiten and be called in a tranformer .

Please share your valuable experiences .
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

PLAN what you need to do. Write it out in ordinary language.

Convert this to pseudo-code, so you get the logic right.

Consult the Parallel Job Developer's Guide, particularly Chapters 15 and 54, for information on how to implement. Within Chapter 15 is a section on the Expression Editor, which (among other things) indicates how to invoke a user-defined function within an expression.

Then create your Routine, or BuildOp, or other mechanism.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
praj
Participant
Posts: 14
Joined: Sat Dec 20, 2003 12:46 am

Post by praj »

I dont think u can call a routine in a Px job transformer.
We can do the same in server.
One thing you can do is move the values in the routine to stage variable and use them in Xmer :)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

praj wrote:I dont think u can call a routine in a Px job transformer.
In PX 7.x there is a new stage type called a BASIC Transformer stage, from which it IS possible to call a Routine.
(I note that the OP specified 6.x.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Eric
Participant
Posts: 254
Joined: Mon Sep 29, 2003 4:35 am

Post by Eric »

You can write PX Routines (using C/Cpp) which can be used in the PX Transformer. These are not the same as Server Routines (using Universe Basic).
dsguy1247
Premium Member
Premium Member
Posts: 33
Joined: Wed Feb 04, 2004 6:35 am
Contact:

Calling a routine from Parallel Extender

Post by dsguy1247 »

[/quote]In PX 7.x there is a new stage type called a BASIC Transformer stage, from which it IS possible to call a Routine.
(I note that the OP specified 6.x.)[/quote]



Ray,

Thanks a lot for the info. I was not aware of it. I had been using C object code as routine and calling them from the Parallel Extender. With this additional info, we definitely have more choice in calling routines from parallel extender.

DSGuy
Post Reply