How do I invoke BTEQ to execute a batch job/script in Windows?
When I tried to invoke BTEQ in a script, I got an error.
If I cut and past my script into an open BTEQWIN session, it works perfectly.
just put the following in your batch file that should do what u want.
bteq < bteqscript > bteqoutput
Tdatgod what if the logon command is in the BTEQ script file itself. Is it necessary to give the following command. Here bteq is windows version or dos version.
I have not been able to get the message directed to a Windows file.
I've tried the > and >> but that hasn't changed anything.
There's nothing more required than to add the file name to the BTEQ command line?
Start cmd.exe you must. Change to the directory where your script is. If myscript.sql is in C:\ddl be in this directory when you enter the command bteq
.logon yada/yada
--Then run your script--
.run file=myscript.sql;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.