Page 1 of 1

Posted: Mon Aug 06, 2012 2:34 pm
by ray.wurlod
Convert() replaces characters on a one-for-one basis. You will need the pxEreplace() function, which does not come with DataStage but source code for which you can find on DSXchange.

Posted: Tue Aug 07, 2012 5:49 am
by marpadga18
Hi ray Itried this routine but when compileing it giving the following error.
Compiling: Source = 'DSU_BP/DSU.ren', Object = 'DSU_BP.O/DSU.ren'

0002 #include "stdio.h"

^
Can't open $INCLUDE file 'DSU_BP/"stdio.h"' Is there anything else I need to do not much experience in C++ any inputs

Posted: Tue Aug 07, 2012 5:57 am
by ArndW
It looks like you are compiling this as a server routine and it is interpreting this as a BASIC Program rather than a c++ program.

Posted: Tue Aug 07, 2012 6:25 am
by marpadga18
Hi Andrew,
So I should create parallel routine..Andrew?

Posted: Tue Aug 07, 2012 6:44 am
by ArndW
Yes, you need to define the custom routine in DataStage and also compile and bind your program outside of DataStage. I just took a quick look at the thread with the pxreplace code and it contains some instructions on the compile and links to threads, I suggest you start there.