Page 1 of 1

How to create sub-routines in Parallel jobs?

Posted: Mon Mar 23, 2009 11:04 am
by mingzhang
Just similar to "Server Routine" in server jobs.
The routine can be called within derivation expression.
It seems "Parallel Routine" is a different concept.
Can any one tells me how to create those sub-routines similar to "Server Routine"?

Thanks

Posted: Mon Mar 23, 2009 12:06 pm
by DSguru2B
Try searching here. There are lots of topics dedicated to parallel routines. You will even find code for some parallel routines.

Posted: Mon Mar 23, 2009 12:18 pm
by mingzhang
"Parallel Routine" seems to be only called before or after a processing stage. It couldn't be called within the derivation expression (like those built-in functions, or similar to "server routine"). Correct me if I am wrong. :-)

I am wondering, in parallel jobs, how to create user-defined routines which can be called within the derivation expressions?
DSguru2B wrote:Try searching here. There are lots of topics dedicated to parallel routines. You will even find code for some parallel routines.

Posted: Mon Mar 23, 2009 12:26 pm
by DSguru2B
If its a "Transform Function" routine, only then you can call it inside the derivation, else if it is designated as "Before/After" job subroutine, you can only call it there.
As per your question
mingzhang wrote: I am wondering, in parallel jobs, how to create user-defined routines which can be called within the derivation expressions?
that is why I asked you to search.
In brief, you need to write a c/c++ function, test it out, create the object file, specify the locatiion of the object file while creating the routine. Once the interlude has been created, you will see it in the drop down section with in the derivation under Parallel Routines.