![Exclamation :!:](./images/smilies/icon_exclaim.gif)
Routine Function
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 1044
- Joined: Wed Sep 29, 2004 3:30 am
- Location: Nottingham, UK
- Contact:
I have created a very similar routine which searches for the first character that is in a set of characters, so you pass "0123456789" and it returns the position of the first numeric. It's here, or search for pxStrFirstCharList. Compilation and installation instructions are included, which you will need to adjust according to your Administrator project settings for your compiler.
Where you place the C++ program is up to your DataStage server admin. It could be your home directory, a generic scratch directory, or a directory created for the purpose of compiling Parallel Routines. The command to compile it is found in DataStage Administrator, look for Properties->Environment->Parallel->Compiler. For example, mine is this:
g++ -O -fPIC -Wno-deprecated -c
Once you have compiled it, I put the .o file in the `cat /.dshome`/../PXEngine/lib directory, but you have to fully specify the path in the Parallel Routine dialog, e.g. /software/opt/IBM/InformationServer/Server/PXEngine/lib/filename.o
Where you place the C++ program is up to your DataStage server admin. It could be your home directory, a generic scratch directory, or a directory created for the purpose of compiling Parallel Routines. The command to compile it is found in DataStage Administrator, look for Properties->Environment->Parallel->Compiler. For example, mine is this:
g++ -O -fPIC -Wno-deprecated -c
Once you have compiled it, I put the .o file in the `cat /.dshome`/../PXEngine/lib directory, but you have to fully specify the path in the Parallel Routine dialog, e.g. /software/opt/IBM/InformationServer/Server/PXEngine/lib/filename.o
Last edited by PhilHibbs on Fri Jul 06, 2012 5:30 am, edited 1 time in total.
Phil Hibbs | Capgemini
Technical Consultant
Technical Consultant