Re: how dbaccess using in FOR circle of UNIX script
Posted in 1998
In my version of Unix and all I have worked on the "EOF" must be in
column 1.
Regards
David Ashby
______________________________ Reply Separator _________________________________
Subject: how dbaccess using in FOR circle of UNIX script
Author: <jjdai@pek-co.cn.dhl.com> at WCA-INET
Date: 13/1/98 8:11 PM
I want to use a for circle to change a variable in a
sql statement but system tell me the EOF not matched
if I donot use for circle the statement will run
correctly. can you help me?
example:
for i in `cat station_name`
do
dbaccess DBNAME <<EOF
select statement
EOF
donethe system warning that the EOF not matched
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet