BTEQ - Creating RUN FILE in Teradata

In BTEQ, the commands can be put in a file and the file name will be supllied with RUN FILE command.

.RUN FILE filename;
.RUN DDNAME filename;

Suppose, the below content is in a file C:\Sample.txt
.LOGON tdpid/userid,password
SELECT * FROM department;

then, you can supply directly the file to run before executing logon command.
.RUN FILE = C:\Sample.txt;
.RUN DDNAME C:\Sample.txt;

'=' is optional