Given a shell script containing a bunch of SQL statements, is there an option to redirect just the SQL statements to stdout/file?
The structure of the script is something like this:
...
for i in *list*
do
isql *credentials etc* <<EOF > a.out
select *about 100 cols*
from $i + "_TAB"
go
EOF
done
...
Query has been simplified, and is quite complex in reality.
How can I grab the actual statements that are executed when I run this script?
Much appreciate your help.