Parallel routine using API
Posted: Wed Dec 02, 2009 8:59 am
Hi ,
I am trying to write the DataStage API "DSSetEnvVar" in my C++ Code,
I am trying to call the same in my transformer , where the Parameters I pass are (DSProjectName,$SK,lnk4.SK+1). I compile the code it is successful, but when i run the job it is getting aborted. I had created the object file as well, What should i correct inorder to make the code work.
Below is my C++ code
#include </opt/ds/7.5.2/Ascential/DataStage/DSEngine/include/dsapi.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
int DSSetEnvVar(DSPROJECT hProject,char *EnvVarName,char *Value);
{
return 0;
}
I compiled the above code as the following :-
/opt/SUNWspro/bin/CC -dalign -O -PIC -library=iostream -c Sample.cpp
I am trying to write the DataStage API "DSSetEnvVar" in my C++ Code,
I am trying to call the same in my transformer , where the Parameters I pass are (DSProjectName,$SK,lnk4.SK+1). I compile the code it is successful, but when i run the job it is getting aborted. I had created the object file as well, What should i correct inorder to make the code work.
Below is my C++ code
#include </opt/ds/7.5.2/Ascential/DataStage/DSEngine/include/dsapi.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
int DSSetEnvVar(DSPROJECT hProject,char *EnvVarName,char *Value);
{
return 0;
}
I compiled the above code as the following :-
/opt/SUNWspro/bin/CC -dalign -O -PIC -library=iostream -c Sample.cpp