Can I call C/C++ API from within datastage server?

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
SPA_BI
Premium Member
Premium Member
Posts: 36
Joined: Tue Aug 29, 2006 8:01 pm
Location: Melbourne

Can I call C/C++ API from within datastage server?

Post by SPA_BI »

Hello,

We have these C/C++ APIs which does some extremely complex calculations to the input data and returns the desired result. We would like to be able to call these functions as part of our transformation. Is it possible to call C/C++ or Java APIs in a datastage server job (or routine)?

Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hello SPA_BI,

DataStage contains a facility for binding in external objects such as c/c++ routines. This is documented for the UniVerse product in the UniVerse GCI Guide. I've done this in previous versions where DataStage and UniVerse were still the same product and it has always been a bit tricky and complex as it also involves creating a new executable. I would ask your support provider if this functionality is still part of DataStage before beginning the work. One of the issues with the GCI is that the work needs to be redone at each DataStage release.

Even if the GCI is still supported I would recommend that you write a program wrapper around your routines and use the UNIX call mechanisms in DataStage to pass parameters in and get results back. This will have a much higher overhead then a procedure call and would only work if your volumes aren't huge or processing time is not at a premium.
Post Reply