Professional Documents
Culture Documents
the BTEQ Script To create and edit a BTEQ script we can use an editor on or client workstation. For example, on a UNIX workstation we can use text editor.
.SET SESSION TRANSACTION ANSI .LOGON TDUSER/tdpassword SELECT emp_name --Name of employee of Dept table ,department_name --Name of Department of Dept table FROM .QUIT dept;
and save it with name test.scr Step 2: To Execute The Script: Start BTEQ, then enter the following BTEQ command to submit a BTEQ script: Format .run file = <bteqscriptname> Example :.run file= test.scr Note: We can include comments in a BTEQ For example /* commented */ We can also use ANSI style (--) in any SQL command script. In above example we have used ANSI style (--) to provide the comment in
BTEQ command