Create Parallel routine in C for Datastage

This page shows two examples on how to create a parallel routine in C for use in Datastage.

The examples are only for the 'Object' type routine because this type is simpeler to implement than the 'Library' type and for our goal, we didn't need a library object.

Example function with integer result

int myIntFunct(int x)
{
        return x+1;
}

Compile

g++ -fPIC -c myTest.c

Example function with char* result

#include <string>
char * myStrFunct(char * s)
{
        return s;
}

Compile

g++ -fPIC -c strTest.c