can we write routines in PX?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 103
- Joined: Fri Jan 18, 2008 12:55 am
- Location: chennai
can we write routines in PX?
can we use routines in PX?
-
- Participant
- Posts: 103
- Joined: Fri Jan 18, 2008 12:55 am
- Location: chennai
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Before/after job subroutines in parallel jobs are written in DataStage BASIC.
Routines callable from parallel Transformer stage must be written in C++ and compiled and linked, and have an entry in the Routines part of the Repository (a parallel "routine" is actually a description of the location of and arguments for the actual external object).
Routines callable from a BASIC Transformer stage are written in DataStage BASIC and may be the same ones that are used in server jobs.
Routines callable from parallel Transformer stage must be written in C++ and compiled and linked, and have an entry in the Routines part of the Repository (a parallel "routine" is actually a description of the location of and arguments for the actual external object).
Routines callable from a BASIC Transformer stage are written in DataStage BASIC and may be the same ones that are used in server jobs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 103
- Joined: Fri Jan 18, 2008 12:55 am
- Location: chennai
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I detect some misunderstanding of how C (or C++) programming works. You don't "copy into a compiler". You use a compiler to convert your source code into something executable, and you use a linker to add references to any other libraries/objects that your code needs.
To use such a routine from a parallel Transformer stage, you need to create a "parallel routine definition" in the Repository. This is not the routine itself, but a piece of metadata that describes the location of the routine and the arguments (and their data types) that it requires.
To use such a routine from a parallel Transformer stage, you need to create a "parallel routine definition" in the Repository. This is not the routine itself, but a piece of metadata that describes the location of the routine and the arguments (and their data types) that it requires.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.