Page 1 of 1

How to create shared C++ object and use them in datastage

Posted: Fri May 09, 2014 7:08 am
by harishvardhan
How to create shared C++ code object and use them in datastage parallel routine . please give me all the steps that i need to create for this.

Posted: Fri May 09, 2014 10:40 am
by chulett
It's all documented so there's really no reason for someone to list "all of the steps" here. This is a good place to start, other official resources exist online as well. Then feel free to come back for help if you have any specific questions or issues.

Posted: Tue May 13, 2014 3:25 pm
by harishvardhan
i am getting this error
##W IIS-DSEE-TBLD-00000 17:14:39(003) <main_program> Error when checking composite operator: Output from subprocess: ld: 0711-736 ERROR: Input file /opt/IBM/InformationServer/Server/PXEngine/lib/liborchbuildopaix64.so:
XCOFF64 object files are not allowed in 32-bit mode.

can any one tell how to create an object file in AIX 6.1.
i am creating object file using this command

$ /usr/vacpp/bin/xlC_r -c <filename with extension>

with the above command the .o file will be created.

the datastage has the following ENV values


APT_COMPILER /usr/vacpp/bin/xlC_r
APT_LINKER /usr/vacpp/bin/xlC_r
APT_COMPILEOPT -O -q64 -c
APT_LINKOPT -G -q64

Posted: Wed May 14, 2014 1:13 am
by prasson_ibm
Try this:-

APT_COMPILEOPT=-O -q64 -c
APT_COMPILER=/usr/vacpp/bin/xlC_r

$<APT_COMPILER> <APT_COMPILEOPT> File_name.cpp

Posted: Wed May 14, 2014 7:08 am
by harishvardhan
I compiled successfully using the options you specified.
but i am getting this error when i run this job
Xfm: Failed to load the library "V0S0_LdFactDemographic_Xfm.o"; either the directory containing the library file
is not on the library search path, or the library was compiled on a system
that is incompatible with this system: Could not load "V0S0_LdFactDemographic_Xfm": rtld: 0712-001 Symbol sumof__FiT1 was referenced
from module /var/opt/apps/etl/projects/AAP_EDW/RT_BP2692.O/V0S0_LdFactDemographic_Xfm.o(), but a runtime definition
of the symbol was not found.
rtld: 0712-002 fatal error: exiting..

please help.

Posted: Wed May 14, 2014 11:39 am
by rameshrr3
very obvious error. Where is the object file stored for your custom px routine ? Is it part of the PATH env variable seen in the environment settings message of the job log?

Posted: Thu Sep 03, 2015 8:29 am
by Umbix62
I have the same problem. I execute all the steps described in this issue. The LIBPATH environment variable points to the folder containing the object file (file.o) but the Jobs aborts again reporting in its log the same message....