Transformer compilation error

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
vennam445
Participant
Posts: 20
Joined: Tue Oct 21, 2008 12:34 pm

Transformer compilation error

Post by vennam445 »

I tried to compile parallel job which has row gen-->transformer-->peek and iam getting the following error msg

Output from transformer compilation follows:

##I TFCN 000001 22:36:11(000) <main_program>
Ascential DataStage(tm) Enterprise Edition 7.5
Copyright (c) 2004, 1997-2004 Ascential Software Corporation.
All Rights Reserved


##I TOSH 000002 22:36:11(001) <main_program> orchgeneral: loaded
##I TOSH 000002 22:36:11(002) <main_program> orchsort: loaded
##I TOSH 000002 22:36:11(003) <main_program> orchstats: loaded
##E TBLD 000000 22:36:12(000) <main_program> Error when checking composite operator: Subprocess command failed with exit status 65280
##E TFSR 000019 22:36:12(001) <main_program> Could not check all operators because of previous error(s)
##W TFCP 000000 22:36:12(002) <transform> Error when checking composite operator: The number of reject datasets "0"is less than the number of input datasets "1".
##W TBLD 000000 22:36:12(003) <main_program> Error when checking composite operator: Output from subprocess: Exec failed: No such file or directory
##I TFCP 000008 22:36:12(004) <transform> Error when checking composite operator: cxx -O -IC:/Ascential/DataStage/PXEngine/include -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c C:/Ascential/DataStage/Projects/ram/RT_BP1.O/V0S6_test_tx_Transformer_6.C -o C:/Ascential/DataStage/Projects/ram/RT_BP1.O/V0S6_test_tx_Transformer_6.tmp.o
##E TCOS 000029 22:36:12(005) <main_program> Creation of step finished with status = FAILED (test_tx.Transformer_6)

*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S6_test_tx_Transformer_6 transform operator.
0003: //
0004:
0005: // define our input/output link names
0006: inputname 0 DSLink5;
0007: outputname 0 DSLink8;
0008:
0009: initialize {
0010: // define our row rejected variable
0011: int8 RowRejected0;
0012:
0013: // define our null set variable
0014: int8 NullSetVar0;
0015:
0016: }
0017:
0018: mainloop {
0019: // initialise our row rejected variable
0020: RowRejected0 = 1;
0021:
0022: // evaluate columns (no constraints) for link: DSLink8
0023: writerecord 0;
0024: RowRejected0 = 0;
0025: }
0026:
0027: finish {
0028: }
0029:
*** End of Internal Generated Transformer Code

I installed MSVC 2003 first and later datastage server on windows platform with service pack 2.I uninstalled MSVC and datastage and reinstalled but the problem is not resolved.What might be the reason?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What values do the following environment variables in the project have?
APT_COMPILER
APT_COMPILE_OPTIONS
APT_LINKER
APT_LINKER_OPTIONS
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Also, manually enter the command

Code: Select all

cxx -O -IC:/Ascential/DataStage/PXEngine/include -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c C:/Ascential/DataStage/Projects/ram/RT_BP1.O/V0S6_test_tx_Transformer_6.C -o C:/Ascential/DataStage/Projects/ram/RT_BP1.O/V0S6_test_tx_Transformer_6.tmp.o
from the command line and see what the error message is.
vennam445
Participant
Posts: 20
Joined: Tue Oct 21, 2008 12:34 pm

Post by vennam445 »

ray.wurlod wrote:What values do the following environment variables in the project have?
APT_COMPILER
APT_COMPILE_OPTIONS
APT_LINKER
APT_LINKER_OPTIONS ...
Hi Ray,
The values for compiler environment variables are as below

APT_COMPILER=cxx
APT_COMPILEOPT=-W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c
APT_LINKER=cxx
APT_LINKER_OPTIONS =-W/TP -W/dll -W/base:0x50000000

Thanks
vennam445
Participant
Posts: 20
Joined: Tue Oct 21, 2008 12:34 pm

Post by vennam445 »

ArndW wrote:Also, manually enter the command

Code: Select all

cxx -O -IC:/Ascential/DataStage/PXEngine/include -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c C:/Ascential/DataStage/Projects/ram/RT_BP1.O/V0S6_test_tx_Trans ...[/quote]

I executed the command cxx  -O   -IC:/Ascential/DataStage/PXEngine/include -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c C:/Ascential/DataStage/Projects/ram/RT_BP1.O/V0S13_test_tx_Transformer_13.C -o C:/Ascential/DataStage/Projects/ram/RT_BP1.O/V0S13_test_tx_Transformer_13.tmp.o from command line and it gave me the error message cxx: file 'C:/PROGRA~1/MKSTOO~1/etc/cxx.ccg': The system cannot find the file sp
ecified
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

And have you fixed your path to correct the problem?
vennam445
Participant
Posts: 20
Joined: Tue Oct 21, 2008 12:34 pm

Post by vennam445 »

ArndW wrote:And have you fixed your path to correct the problem? ...
I fixed the path to C:\Program Files\MKS Toolkit\etc but even then I get the same error message.I checked for the file cxx.xxg in this folder,it is missing.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The "cxx" script and compiler has nothing to do with DataStage; so you need to fix that first. Perhaps a compiler reinstall? Or MS Support? Or just look at the script and see where it references a cxx.ccg file and what it might be.
vennam445
Participant
Posts: 20
Joined: Tue Oct 21, 2008 12:34 pm

Post by vennam445 »

ArndW wrote:The "cxx" script and compiler has nothing to do with DataStage; so you need to fix that first. Perhaps a compiler reinstall? Or MS Support? Or just look at the script and see where it references a cxx ...
I installed the mks tool kit again but even then i get the same error message...
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

is the "cxx" object being referred to a program or a script? Most likely a script, so you can edit it and see what it is doing. The cxx compiler isn't part of MKS toolkit.
vennam445
Participant
Posts: 20
Joined: Tue Oct 21, 2008 12:34 pm

Post by vennam445 »

Thanks very much for your help.I uninstalled datastage,MSVC and installed again.Now the problem is solved.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please mark the thread as Resolved using the green button at top.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply