What does the $ in front of environment variables do?

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
truenorth
Participant
Posts: 139
Joined: Mon Jan 18, 2010 4:59 pm
Location: San Antonio

What does the $ in front of environment variables do?

Post by truenorth »

Sometimes I see the $ in front of environment variables, but at other times it's not there. What is the difference?
Todd Ramirez
Sr Consultant, Data Quality
San Antonio TX
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

Page 93 of designer guide.

Chapter 5. Making your jobs adaptable
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,
It is not sometimes.All Cutomize,Parallel,Compiler,Operator Specific,Reporting and User Defined environment variables(that are defined at project level) are starts with $ but the environment variables which you explicitly define in your job properties,it does not required $ sing.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The conventions for shell and environment variables in UNIX is:
  • when the variable is named, it is not preceded with $

    when the value of the variable is retrieved, the variable name is preceded with $
DataStage follows this convention for using environment variables.
Last edited by ray.wurlod on Wed Apr 17, 2013 2:41 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
truenorth
Participant
Posts: 139
Joined: Mon Jan 18, 2010 4:59 pm
Location: San Antonio

Post by truenorth »

Thank you, all.
Todd Ramirez
Sr Consultant, Data Quality
San Antonio TX
Post Reply