How can I pass a valule to a DataStage job and use it in transformer for other purpose. Say I need to do a pre processing to get a date and pass that date to a job to compare with a field coming out of my input file.
I read somewhere in this forum that we can use a file as a stage variable when it has a value like this. so I stored that value in a file and substitute "cat /path/filename" as initial value of a stage variable I am just getting the whole string as a value. I am not getting the content of the file.
Thanks
file as a stage variable
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Just mimic the before subroutine called ExecSH or ExecDOS using a Function. Now, that function takes your argument and executes it, returning the screen output as the answer.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle