replace quote character " " with ~#

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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Post 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
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Post by marpadga18 »

Hi Andrew,
So I should create parallel routine..Andrew?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
Post Reply