Page 1 of 1

get userstatus using parallel routine

Posted: Wed Oct 15, 2008 6:14 am
by 2ksaint
My job will have a colom generator - > trans - > peek. I need the userstatus of the job.

sample C++ code written and it was working..
#include <stdlib.h>
#include <stdio.h>

char * ObjTestOne()
{
char* OutStr;
OutStr="Hello World - Object Testing";
return OutStr;
}

How to use the functions given below in C++
************************
DSPROJECT DSOpenProject(
char *ProjectName
);
************************
int DSGetJobInfo(
DSJOB JobHandle,
int InfoType,
DSJOBINFO *ReturnInfo
);
***********************
What #define need to be used here...

Is there any sample c++ code to get a user status

I tried like..

#include <stdlib.h>
#include <stdio.h>
#include </kl/Ascential/Datastage/DSEngine/dsapi.h>
#define DSGetJobInfo()
{
int DSGetJobInfo(
DSJOB JobHandle,
int InfoType,
DSJOBINFO *ReturnInfo
);
}

but i always getting error..

If any one provide a sample C++ routine which uses datastage function,will be very helpfull..