Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Douglas Wilson — — source: Informix-list mailing list archive (1991-1998)
Avi Abrami wrote:
> Your problem is the indentation in the "for" LOOP (not 'circle').
> The code should be as follows:
>
> for i in `cat station_name`
> do
> dbaccess DBNAME <<EOF
> select statement> EOF
> done
>
> i.e. all code following the EOF should not be indented - it should start
> from the left.
You can indent the 'EOF' with tab(s) if you use '<<-' (at least
in ksh):
dbaccess DBNAME <<-EOF
select statement
EOF
Douglas Wilson
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.