Page 1 of 1
How to pass values to environmental variables thru job
Posted: Wed Sep 10, 2008 9:44 pm
by Jagan617
I want to pass the values to the environmental variables in the server job. Can you pls assist me on this
Posted: Wed Sep 10, 2008 9:48 pm
by ray.wurlod
Can you be more explicit? I understand that you want to set environment variables from a DataStage job. If that's correct, simply execute an appropriate command or pipeline of commands. For example
You could execute this command (for example, still) via ExecDOS as an after-job or after-stage subroutine.
Posted: Thu Sep 11, 2008 7:07 am
by chulett
However, would it still be set once the job's session ends? I guess it would be simple enough to test it.
![Confused :?](./images/smilies/icon_confused.gif)
Posted: Thu Sep 11, 2008 3:37 pm
by ray.wurlod
Of course not. When the job finishes its shell closes.
Posted: Thu Sep 11, 2008 4:34 pm
by chulett
Didn't think so, but sure seems to me that's what the OP wants and you said "Sure, do it like this" so was a little confused. Never mind the fact it was fairly early on a hectic morning, what with two new puppies chewing on my cords and cables.
![Wink :wink:](./images/smilies/icon_wink.gif)