Below is the content of my script.bat :

```
@echo off

cd C:\Program Files\Teradata\Client\13.0\bin

bteq .LOGON server/username,password;

select date;

.LOGOFF

@echo off goto end

:end @echo exit

```

I have no problem with the logon, but it seems that bteq can't read my query statement:

> 
> select date;
> 
> 
> 

It keeps prompting for input. Can anyone help me to get bteq to read and execute the query statement?

I've tried the solutions online about input and output file:

```
bteq <myscript.txt> mylog.log

```

but it didn't work either.