Page 1 of 1

Accessing enviromnent variables

Posted: Wed Aug 01, 2001 1:34 pm
by admin
Hi all,

May i, in Designer, access the enviroment variables set in Unix Shell? For example, if i have set in UNIX shell a enviromnent variable LOG, how can i access it in Designer?

Thanks in advance,

P.S.: I dont want to pass the variable LOG as a parameter.


NSP

Posted: Wed Aug 01, 2001 10:26 pm
by admin
UniVerse (DataStage engine) has an ENV command. You could execute the command ENV DISPLAY LOG and capture its output, perhaps using DSExecute with the shell argument set to "UV", this in a before/after subroutine or in a job control routine.

-----Original Message-----
From: Nuno Pimenta [mailto:nuno.pimenta@tmn.pt]
Sent: Wednesday, 01 August 2001 23:34
To: LIST-DataStage (E-mail)
Subject: Accessing enviromnent variables


Hi all,

May i, in Designer, access the enviroment variables set in Unix Shell? For example, if i have set in UNIX shell a enviromnent variable LOG, how can i access it in Designer?

Thanks in advance,

P.S.: I dont want to pass the variable LOG as a parameter.


NSP