Accessing enviromnent variables

Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.

Moderators: chulett, rschirm

Locked
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Accessing enviromnent variables

Post 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
admin
Posts: 8720
Joined: Sun Jan 12, 2003 11:26 pm

Post 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
Locked