I needed to write some functionality where i needed to update the environemt variables in my Job stream.
I read through the Advanced Parallel Developer Guide..Job Development Kit and some posts in IT Toolbox. I finally figured out and wrote this c++ code
Code: Select all
#include <stdlib.h>
#include <stdio.h>
#include "/opt/atlas/IBM/InformationServer/Server/DSEngine/include/dsapi.h"
char * UpdateEnv(char *Projname, char *EnvVarName, char *Value)
{
int DSSetEnvVar(DSPROJECT Projname,char *EnvVarName,char *Value);
char* OutStr;
OutStr=Value;
return OutStr;
}
my DSSetEnvVar(DSPROJECT Projname,char *EnvVarName,char *Value);
doesn't seems to be working....
Is there something i am missing in here
Any inputs will be really helpful
Thanks
Pavan