Page 1 of 1

datastage command for environment variable

Posted: Thu Aug 02, 2007 3:51 pm
by Merly
Is there any datastage command which can be used to get the value of the environment variable .

Posted: Thu Aug 02, 2007 3:59 pm
by ArndW
Yes, there is. But it depends upon where you wish to get this value. I can't recall the exact function name that you can use in a transform stage, but you will get it shown to you in the drop-down list of functions. You can also shell out to UNIX in many places and retrieve the value there.

Posted: Thu Aug 02, 2007 4:45 pm
by Luciana
Hi,

Can be used the function GetEnvironment(%envvar%) in the transformer stage.

Code: Select all

GetEnvironment('APT_CONFIG_FILE')