datastage command for environment variable

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
Merly
Participant
Posts: 5
Joined: Tue Jan 23, 2007 9:52 pm
Location: Bangalore

datastage command for environment variable

Post by Merly »

Is there any datastage command which can be used to get the value of the environment variable .
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post 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.
Luciana
Participant
Posts: 60
Joined: Fri Jun 10, 2005 7:22 am
Location: Brasil

Post by Luciana »

Hi,

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

Code: Select all

GetEnvironment('APT_CONFIG_FILE')
Post Reply