What must the Source Program do in an External Source Stage?
djoni
source program in external source stage
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It must generate rows of data that can be received, interpreted as one or more columns, and put onto the stage's output link.
For example, I have created an External Source stage to get data out of a UniVerse table. It invoked a shell script that
For example, I have created an External Source stage to get data out of a UniVerse table. It invoked a shell script that
- made sure environment variables were correctly set
changed to the project directory (just in case)
executed the uv command
tidied up the output of the uv command
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: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
No. The stage picks up its source from stdout of whatever command is executed. There ought to be no file involved (unless, as I did, you employ a shell script).
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.