Find a environment variable Value !

There is shell script which contains some variables .
These variables are used , but they have declared in the script.
I think its a environment variable, so I want to know where these variables are set and given values
In .profile or .login..or where to c

Please give the full path and file name to look for these environment variables.

Thanx
bharani

Could you please upload the script so that we can have a look?

`echo userid=$userrep/$UDD_CMT_LVLPS2@$dsnrep control=$ctlfile data=$datafile log=$logfile bad=$badfile $ldrval $ldrparams > $pthtest/passwd.par`

The variable $UDD_CMT_LVLPS2 is not defined any where,I am 100% sure it is environment variable.But in which file it is configured.

UDD_CMT_LVLPS2 is an env variable specific to your application. You should see if there are any env settings that needs to be set before you run the script. There is no particular location that can be pointed out.