I am also facing the same issue,
It seems after entering the BTEQ its not coming back to shell.
Ma script is like
unix cmd1
unix cmd2
bteq <<[Test]
.logmech ${TD_MECHANISMNAME}
.logon ${TD_DBCNAME}/${TD_USERNAME},${TD_PASSWORD}
some SQL Statements
.logoff
[Test]
unix cmd3
Here it never comes to cmd3, eventhough i logged off its trying to execute the unix cmd in Database and show you should logon before running, if i try quit or exit it comes out of the shell scritpt itself..
I am also facing the same issue,
It seems after entering the BTEQ its not coming back to shell.
Ma script is like
unix cmd1
unix cmd2
bteq <<[Test]
.logmech ${TD_MECHANISMNAME}
.logon ${TD_DBCNAME}/${TD_USERNAME},${TD_PASSWORD}
some SQL Statements
.logoff
[Test]
unix cmd3
Here it never comes to cmd3, eventhough i logged off its trying to execute the unix cmd in Database and show you should logon before running, if i try quit or exit it comes out of the shell scritpt itself..
what am i missing??