Errors in Transformer stage Routines.

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
kavuri
Premium Member
Premium Member
Posts: 161
Joined: Mon Apr 16, 2007 2:56 pm

Errors in Transformer stage Routines.

Post by kavuri »

Hi,
I had written a C code in which previously I used the function name as string(), which we should not use, Now I am getting some errors after I changed the function name. I am following here the code as well as error. Please tell me what's the wrong in it.

Code :
#include<stdio.h>
#include<iostream.h>
#include<stdlib.h>
char Convert(int);
char * biginttostring(long long Value)
{
//long long Value = 9223372036854775807LL ;
int part = 0;
char * strOut = {0};
strOut=(char*)malloc(12*sizeof(char));
for(int i = 0; i < 11; i++)
{
//printf("%d \n", sizeof(Value));
//printf("%d \n", sizeof(part));
part = (int)(Value & 0x3F);
Value = Value >> 6;
//printf("Value = %d \n", Value);
//printf("Part = %d \n", part);
//printf("%d \n", sizeof(part));
strOut[10 - i] = Convert(part);
//printf("String Value = %s \n", strOut);
}
strOut[11] = '\0';
printf("String Value = %s \n", strOut);
return strOut;
free(strOut);
}
char Convert(int nPart)
{
char chCode = ' ';
switch(nPart)
{
case 0 :
chCode = '*';
break;


Error :
##W TCOS 000049 16:35:44(000) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E TBLD 000000 16:35:51(000) <main_program> Error when checking composite operator: Subprocess command failed with exit status 64,512.
##E TFSR 000019 16:35:51(001) <main_program> Could not check all operators because of previous error(s)
##W TFCP 000000 16:35:51(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 16:35:51(003) <main_program> Error when checking composite operator: Output from subprocess: /usr/vacpp/bin/xlC_r: 1501-228 input file /home/bhi/.o not found

##I TFCP 000000 16:35:51(004) <transform> Error when checking composite operator: /usr/vacpp/bin/xlC_r -L/medstat/advantage/common/Ascential/DataStage/Projects/bhidev/RT_BP13.O/ -L/medstat/advantage/common/Ascential/DataStage/PXEngine/lib -L/medstat/advantage/common/Ascential/DataStage/PXEngine/user_lib -G -lorchaix3 -lorchcoreaix3 -lorchbuildopaix3 /home/bhi/.o /medstat/advantage/common/Ascential/DataStage/Projects/bhidev/RT_BP13.O/V0S6_testjob2_Transformer_6.tmp.o -o /medstat/advantage/common/Ascential/DataStage/Projects/bhidev/RT_BP13.O/V0S6_testjob2_Transformer_6.o.
##E TCOS 000029 16:35:51(005) <main_program> Creation of a step finished with status = FAILED. (testjob2.Transformer_6)

Thanks
Kavuri
kavuri
Premium Member
Premium Member
Posts: 161
Joined: Mon Apr 16, 2007 2:56 pm

Re: Errors in Transformer stage Routines.

Post by kavuri »

At last i was able to compile, Now i am getting an error while running my job, can anybody tell me whats the wrong with this.

Transformer_6: Failed to load the library "V0S6_testjob2_Transformer_6.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 "V0S6_testjob2_Transformer_6": rtld: 0712-001 Symbol biginttostring__FUL was referenced
from module /medstat/advantage/common/Ascential/DataStage/Projects/bhidev/RT_BP13.O/V0S6_testjob2_Transformer_6.o(), but a runtime definition
of the symbol was not found..

One more warning I havent seen in my jobs earlier

Failed to connect to JobMonApp on port 13401

Please let me know whats the wrong in this.

Thanks
Kavuri
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Kavuri,

it seems that you aren't pointing to your new binary file,
/usr/vacpp/bin/xlC_r: 1501-228 input file /home/bhi/.o not found
. Can you check your routine definition in the Manager to make sure it is filled in correctly?
kavuri
Premium Member
Premium Member
Posts: 161
Joined: Mon Apr 16, 2007 2:56 pm

Post by kavuri »

Hi,

In the parallel routine I am giving following details.

Library Path : /home/bhi/biginttostring.o
Routine Name : biginttostring
External Subroutine name : biginttostring
Object type : Object.

Can you tell me Is there any wrong in this?

Thanks
Kavuri
Post Reply