Usage of $ as variable name

Hi I have to use a Environment variable and that variable has $ prefixed to its name like,
$var=/home/source/test/
i need to use the variable as i have show above. :confused:
Help requested..... Thanks in advance...

var=/home/source/test
echo $var

Can't you use it like this?

Actually my variable is $var can you help me using this

Are you talking about bash? 'Cause bash will fail if you use that syntax. I'm not such I understand the problem. If it is an environment variable, can you see it when you type export in the terminal?

actually that is being passed into datastage job as environment varible

I found a blog talking about your problem: datastage.

If this does not help you, wait for more replies 'cause I'm not familiar with datastage.

this seems like a problem in understanthing.
if im not mistaken, in bash, the varaible is called "var"
the $ at the begining is a way to call teh contents of it. when you set the var, you do this
var="some content"
when you cant to use that var you use
echo $var
or
touch file.$var