Encountered EOF on RUN file. Returning to stdin.

Tools
Enthusiast

Encountered EOF on RUN file. Returning to stdin.

we just upgraded to TTU 15.10 on our unix boxes... our shell scripts are now spitting out this message but they are working fine.  is there a way to not have this displayed.  we tired the .quit and .exit and adding the errorcode to the end of both... that did not work.  any ideas? 

 

 

echo "sel date;" >> $output/ch_password.btq
echo "quit"  >> $output/ch_password.btq

 

echo > $output/ch_password.log

bteq <<EOF>> $output/ch_password.log
.RUN FILE=/opt/teradata/.pfiles/.logon_XXX;
.RUN FILE=$output/ch_password.btq

EOF

 

________________

the output on the unix screen is

*** Encountered EOF on RUN file. Returning to stdin. 

 

but the return code is 0 and the script runs fine.  just looking to have this removed.

2 REPLIES
Teradata Employee

Re: Encountered EOF on RUN file. Returning to stdin.

This informational message is normal, and cannot be suppressed.

Teradata Employee

Re: Encountered EOF on RUN file. Returning to stdin.

Fred is correct.

 

But if I understand your post correctly, you simply don't want the message displayed on your unix screen.  If that is the case, then you can try redirecting stderr to your log file, such as:

 

bteq <<EOF>> $output/ch_password.log 2>&1

.RUN FILE=/opt/teradata/.pfiles/.logon_XXX;

.RUN FILE=$output/ch_password.btq

EOF

 

Or if you upgrade to BTEQ 15.10.01.06 (or higher), that particular message will be sent to stdout, and therefore will be written to your log file.  Prior to BTEQ 15.10.01.06, that message was being sent to stderr.

 

Which BTEQ 15.10.xx.xx version are you using? 

If I misunderstood the issue, please elaborate.