Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

missing variable values

Status
Not open for further replies.

darfader

Programmer
Aug 6, 2003
38
GB
warning - beginner

Hi,

if I type this at the command line

echo $SQL_IN
/export/home/pac/work/tmp

the value is displayed, and if I type this

echo "ctl file is $SQL_IN/customer_code_load.ctl"
ctl file is /export/home/pac/work/tmp/customer_code_load.ctl

again, no problem, but inserting this line into a shell script, the result is different

$ customer_code.sh customer_code.dat
ctl file is /customer_code_load.ctl

what is the difference please ?


tia,
 
Is the SQL_IN variable exported (ie in the environment) ?

Hope This Help
PH.
 
So, try this:
Code:
$ export SQL_IN; customer_code.sh customer_code.dat

Hope This Help
PH.
 
Hi PH,

I tagged this onto the end of the .profile

SQL_IN=/export/home/pac/work/tmp
export SQL_IN


:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top