Page 1 of 1

Will Not Compile

Posted: Mon Jan 07, 2008 11:36 am
by Pilot225
I am pulling from two sequential Files than Joining them after that goes into Transformer and out to two files. I am getting the error below any help would be appreciated.

Output from transformer compilation follows:

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


##I TOSH 000002 11:10:14(001) <main_program> orchgeneral: loaded
##I TOSH 000002 11:10:14(002) <main_program> orchsort: loaded
##I TOSH 000002 11:10:14(003) <main_program> orchstats: loaded
##W TFPA 000012 11:10:15(000) <main_program> Warning: the PWD environment variable is not defined. Remote process startup may be unsuccessful as a result.If your ORCHESTRATE job does not start up correctly, please set your PWD variable to a value that will work on all nodes of your system. [util\pathutils.C:323]
##I TCOS 000021 11:10:15(001) <main_program> Echo:
transform -inputschema record
(
Warehouse:int32;
Item:ustring[max=255];
Onhand:ustring[max=15];
Onorder:ustring[max=15];
Allocated:ustring[max=15];
HardAllocated:ustring[max=15];
Description:ustring[max=255];
)
-outputschema record
(
Warehouse:int32;
Item:ustring[max=255];
Onhand:ustring[max=15];
Onorder:ustring[max=15];
Allocated:ustring[max=15];
HardAllocated:ustring[max=15];
)
-outputschema record
(
Warehouse:int32;
Item:ustring[max=255];
Description:ustring[max=255];
)
-expressionfile RT_SC77/V0S2_Abhi_Constrant_Transformer_2.trx
-flag compile
-compiler 'cxx'
-compileopt '-W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c'
-linker 'cxx'
-linkopt '-W/TP -W/dll -W/base:0x50000000'
-name V0S2_Abhi_Constrant_Transformer_2
-dir C:/ASCENTIAL/DATASTAGE/PROJECTS/IOLAP/RT_BP77.O

##I TCOS 000022 11:10:15(003) <main_program> Explanation:
Step has 1 operator.
???, invoked with args: -inputschema record ( Warehouse: int32; Item: ustring[max=255]; Onhand: ustring[max=15]; Onorder: ustring[max=15]; Allocated: ustring[max=15]; HardAllocated: ustring[max=15]; Description: ustring[max=255]; ) -outputschema record ( Warehouse: int32; Item: ustring[max=255]; Onhand: ustring[max=15]; Onorder: ustring[max=15]; Allocated: ustring[max=15]; HardAllocated: ustring[max=15]; ) -outputschema record ( Warehouse: int32; Item: ustring[max=255]; Description: ustring[max=255]; ) -expressionfile RT_SC77/V0S2_Abhi_Constrant_Transformer_2.trx -flag compile -compiler cxx -compileopt -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c -linker cxx -linkopt -W/TP -W/dll -W/base:0x50000000 -name V0S2_Abhi_Constrant_Transformer_2 -dir C:/ASCENTIAL/DATASTAGE/PROJECTS/IOLAP/RT_BP77.O

Step has 0 data entities.

##I TCOS 000023 11:10:15(004) <main_program> Dump:
{
text="transform -inputschema record ( Warehouse: int32; Item: ustring[max=255]; Onhand: ustring[max=15]; Onorder: ustring[max=15]; Allocated: ustring[max=15]; HardAllocated: ustring[max=15]; Description: ustring[max=255]; )\r\n-outputschema record ( Warehouse: int32; Item: ustring[max=255]; Onhand: ustring[max=15]; Onorder: ustring[max=15]; Allocated: ustring[max=15]; HardAllocated: ustring[max=15]; )\r\n-outputschema record ( Warehouse: int32; Item: ustring[max=255]; Description: ustring[max=255]; )\r\n-expressionfile RT_SC77/V0S2_Abhi_Constrant_Transformer_2.trx\r\n-flag compile\r\n-compiler 'cxx'\r\n-compileopt '-W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c'\r\n-linker 'cxx'\r\n-linkopt '-W/TP -W/dll -W/base:0x50000000'\r\n-name V0S2_Abhi_Constrant_Transformer_2\r\n-dir C:/ASCENTIAL/DATASTAGE/PROJECTS/IOLAP/RT_BP77.O",
line=1, column=1, name="", qualname="",
op={
text="transform -inputschema record ( Warehouse: int32; Item: ustring[max=255]; Onhand: ustring[max=15]; Onorder: ustring[max=15]; Allocated: ustring[max=15]; HardAllocated: ustring[max=15]; Description: ustring[max=255]; )\r\n-outputschema record ( Warehouse: int32; Item: ustring[max=255]; Onhand: ustring[max=15]; Onorder: ustring[max=15]; Allocated: ustring[max=15]; HardAllocated: ustring[max=15]; )\r\n-outputschema record ( Warehouse: int32; Item: ustring[max=255]; Description: ustring[max=255]; )\r\n-expressionfile RT_SC77/V0S2_Abhi_Constrant_Transformer_2.trx\r\n-flag compile\r\n-compiler 'cxx'\r\n-compileopt '-W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c'\r\n-linker 'cxx'\r\n-linkopt '-W/TP -W/dll -W/base:0x50000000'\r\n-name V0S2_Abhi_Constrant_Transformer_2\r\n-dir C:/ASCENTIAL/DATASTAGE/PROJECTS/IOLAP/RT_BP77.O",
line=1, column=1, name=transform, qualname=transform,
wrapout={},
wrapperfile=transform, kind=non_wrapper_cdi_op, exec_mode=none,
args="'record ( Warehouse: int32; Item: ustring[max=255]; Onhand: ustring[max=15]; Onorder: ustring[max=15]; Allocated: ustring[max=15]; HardAllocated: ustring[max=15]; Description: ustring[max=255]; )'-outputschema'record ( Warehouse: int32; Item: ustring[max=255]; Onhand: ustring[max=15]; Onorder: ustring[max=15]; Allocated: ustring[max=15]; HardAllocated: ustring[max=15]; )'-outputschema'record ( Warehouse: int32; Item: ustring[max=255]; Description: ustring[max=255]; )'-expressionfile'RT_SC77/V0S2_Abhi_Constrant_Transformer_2.trx'-flag'compile'-compiler'cxx'-compileopt'-W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c'-linker'cxx'-linkopt'-W/TP -W/dll -W/base:0x50000000'-name'V0S2_Abhi_Constrant_Transformer_2'-dir'C:/ASCENTIAL/DATASTAGE/PROJECTS/IOLAP/RT_BP77.O'"
}
}

##E TBLD 000000 11:10:15(005) <main_program> Error when checking composite operator: Subprocess command failed with exit status 256 [buildop\compile.C:471]
##E TFSR 000019 11:10:15(006) <main_program> Could not check all operators because of previous error(s) [api\step_rep.C:1128]
##W TFCP 000000 11:10:15(007) <transform> Error when checking composite operator: The number of reject datasets "0"is less than the number of input datasets "1". [transform\transform.C:1892]
##W TBLD 000000 11:10:15(008) <main_program> Error when checking composite operator: Output from subprocess: cxx: file 'C:/PROGRA~1/MKSTOO~1/etc/cxx.ccg': The system cannot find the file specified.

##I TFCP 000008 11:10:15(009) <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/IOLAP/RT_BP77.O/V0S2_Abhi_Constrant_Transformer_2.C -o C:/ASCENTIAL/DATASTAGE/PROJECTS/IOLAP/RT_BP77.O/V0S2_Abhi_Constrant_Transformer_2.tmp.o
##E TCOS 000029 11:10:15(010) <main_program> Creation of step finished with status = FAILED [osh.C:1105] (Abhi_Constrant.Transformer_2)

*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S2_repos_Transformer_2 transform operator.
0003: //
0004:
0005: // define our input/output link names
0006: inputname 0 DSLink13;
0007: outputname 0 DSLink7;
0008: outputname 1 DSLink19;
0009:
0010: initialize {
0011: // define our row rejected variable
0012: int8 RowRejected0;
0013:
0014: // define our null set variable
0015: int8 NullSetVar0;
0016:
0017: }
0018:
0019: mainloop {
0020: // initialise our row rejected variable
0021: RowRejected0 = 1;
0022:
0023: // evaluate constraint and columns for link: DSLink7
0024: if ((DSLink13.Warehouse != 100))
0025: {
0026: writerecord 0;
0027: RowRejected0 = 0;
0028: }
0029: // evaluate constraint and columns for link: DSLink19
0030: if ((DSLink13.Warehouse == 100))
0031: {
0032: writerecord 1;
0033: RowRejected0 = 0;
0034: }
0035: }
0036:
0037: finish {
0038: }
0039:
*** End of Internal Generated Transformer Code

Posted: Mon Jan 07, 2008 11:52 am
by ArndW
Hello and welcome to DSXchange!

The part of your error message that reads
...Error when checking composite operator: cxx -O -...
should point you in the correct direction - your c++ compiler is not installed correctly.

Posted: Mon Jan 07, 2008 12:01 pm
by ray.wurlod
... or that one or more of the environment variables that need to be set to tell DataStage about the compiler/linker has not been given a correct value.