Page 1 of 1

unable to use user defined function

Posted: Mon Oct 09, 2006 8:12 am
by rajan.n
Hi all,
i have created a function and a routine from manager using New server routine with a BASIC code .This is for parallel jobs.
my question is ,i can able to use a routine properly from job properties(parallel jobs),but not function in transformer(parallel). can any body help me in this issue.

Re: unable to use user defined function

Posted: Mon Oct 09, 2006 8:22 am
by meena
Hi,
Are you using Basic transformer stage.

[quote"]
my question is ,i can able to use a routine properly from job properties(parallel jobs),but not function in transformer(parallel). can any body help me in this issue.[/quote]

Posted: Mon Oct 09, 2006 3:59 pm
by ray.wurlod
You can not use a server routine in a parallel Transformer stage. You can only use a server routine in a server job or in a BASIC Transformer stage in a parallel job.
Your alternative is to create a parallel routine.

Posted: Tue Oct 10, 2006 12:01 am
by rajan.n
Hi , so i need to create parallel function, may i know..whats the procedure to create a parallel function or a routine.



ray.wurlod wrote:You can not use a server routine in a parallel Transformer stage. You can only use a server routine in a server job or in a BASIC Transformer stage in a parallel job.
Your alternative is to create a ...

Posted: Tue Oct 10, 2006 12:29 am
by Kirtikumar
It is very different than a normal basic routine.

First you have to write the C/C++ function according to your needs. Then compile it using C/C++ compiler available on your machine and the one used in your PX jobs. (You can find the name of compiler in environment variable APT_COMPILE.)
Compile it and create a object file or library. Then go to the DS manager, create PX routine there and mention the object filename or library file as the one created during the compilation. Define the input parameters and output parameter type.

Now you can use this PX routine. To find more do a search on forum of parallel routines. There is also some help available in DS Manager PDF file under chapter Working with Parallel Routines

Posted: Mon Oct 16, 2006 1:57 am
by rajan.n
Hi, am using putty to acess unix remote server, can u pls desc. clearly the proces up to creating .o file how to compile the c++ or c program in unix, can we also write code in unix and make it .o file.
thanx much in advance.

Posted: Mon Oct 16, 2006 2:07 am
by ArndW
Rajan,

Ray already suggested you
...There is also some help available in DS Manager PDF file under chapter Working with Parallel Routines
Once you do that it will answer some of your questions. The general subject of C++ code and creating/compiling/linking such is a bit outside of this forum's scope, but if you have specific questions once having read the documentation then people here will be glad to assist.