How to pass values to environmental variables thru job

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Jagan617
Participant
Posts: 42
Joined: Thu Jun 05, 2008 7:37 pm

How to pass values to environmental variables thru job

Post by Jagan617 »

I want to pass the values to the environmental variables in the server job. Can you pls assist me on this
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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

Code: Select all

set MYVAR=#valuetoset# 
You could execute this command (for example, still) via ExecDOS as an after-job or after-stage subroutine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

However, would it still be set once the job's session ends? I guess it would be simple enough to test it. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Of course not. When the job finishes its shell closes.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply