significance of '$' prefix to Envrironment variables

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
zulfi123786
Premium Member
Premium Member
Posts: 730
Joined: Tue Nov 04, 2008 10:14 am
Location: Bangalore

significance of '$' prefix to Envrironment variables

Post by zulfi123786 »

Is the '$' prefixed to environment variables just to distinguish them from the user defined job parameters or is there any underlying reason ?
- Zulfi
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

yes..There's no other significance as i guess.
From what i recall, $ is automatically added even if you omit.
pandeeswaran
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You'd probably need a time machine and a trip back to the 60's to find out the reasons behind fundamental things like this. Before UNIX were fun things like Multics and RUNCOM. Some history here including the interesting note that "Unix" was a joke name someone made up that stuck. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

TMPDIR is the name of an environment variable.
$TMPDIR is a reference to the current value of that environment variable.

Any variation to that is laziness or ignorance.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I went down the "why is it a dollar sign" path, this rather than @ or % or something else entirely...
-craig

"You can never have too many knives" -- Logan Nine Fingers
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

% is the one what we used to refer in windows systems
pandeeswaran
Post Reply