How to call the PX routine in job control of DS PX job
Moderators: chulett, rschirm, roy
How to call the PX routine in job control of DS PX job
Hi,
I have created one parallel routine in DS 7.5.1A
This routine is of type "External Transformer".
I am trying to call this PX routine in Job control section of a PX job using below code...
DEFFUN DSU.MyFunc(int)
RetCode= DSU.MyFunc(100)
Job is getting aborted.
can any one suggest me how to call routine in job control section.
Thanks,
Yogi.
I have created one parallel routine in DS 7.5.1A
This routine is of type "External Transformer".
I am trying to call this PX routine in Job control section of a PX job using below code...
DEFFUN DSU.MyFunc(int)
RetCode= DSU.MyFunc(100)
Job is getting aborted.
can any one suggest me how to call routine in job control section.
Thanks,
Yogi.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Parallel routines do not undergo the same "catalog" mechanism that server job routines do, hence DEFFUN declarations are inappropriate. Parallel routines are not readily called from job control code, since parallel routines are written in a different language (C++) from job control code (DataStage BASIC). Whilst it's technically possible, using the GCI mechanism, this involves relinking your dssh executables, and so we normally advise against this route. Instead, create a server routine with equivalent functionality.
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.
Yoganand,
as Ray has already pionted out, you need to do some complicated work to make the DataStage BASIC or server engine call an external routine in C++.
You will need to define the GCI parameters and re-link the dssh/uvsh executable. There is a manual available on IBM's website describing how to do this with the 99% compatible UniVerse engine; but I am certain that this functionality is not officially supported by IBM/Ascential for DataStage (although it will work).
Perhaps you can do a simpler workaround - change your routine into a UNIX program that accepts it's parameters on the command line and then call this program from the before/after code with DSExecute().
as Ray has already pionted out, you need to do some complicated work to make the DataStage BASIC or server engine call an external routine in C++.
You will need to define the GCI parameters and re-link the dssh/uvsh executable. There is a manual available on IBM's website describing how to do this with the 99% compatible UniVerse engine; but I am certain that this functionality is not officially supported by IBM/Ascential for DataStage (although it will work).
Perhaps you can do a simpler workaround - change your routine into a UNIX program that accepts it's parameters on the command line and then call this program from the before/after code with DSExecute().
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
And I suppose you expect a zone 4 DVD to work in a zone 1 player too. Either you modify the player to multi-zone (equivalent to linking your parallel routine into the dssh executable and invoking it with the GCI), or you get a zone 4 player (write an equivalent server routine to be called from job sequences).yoganand wrote:Ray,
These routines needs to execute in both job control and PX Transformer.
If I write server routine we can not use those routines in PX transformer.
I wrote PX routines which are working in PX Transformer and I want to use same routines in job control section of PX job.
Thanks,
Yoganand
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: 75
- Joined: Tue May 13, 2003 4:14 am
- Location: California
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: