get userstatus using parallel routine

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
2ksaint
Participant
Posts: 66
Joined: Sun Jan 20, 2008 11:15 pm

get userstatus using parallel routine

Post 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..
Post Reply