OK, you could do something like:
(
echo "begin work;"
echo "select .... from sometable into temp fred;""
echo "insert into othertable select * from fred;"
...
...
echo "commit work;"
) | dbaccess mydatabase -
However, personally I like the sqlcmd "server mode" better.
Art
Art S. Kagel
Advanced DataTools (
www.advancedatatools.com)
Blog:
http://informix-myview.blogspot.com/
Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.