If, for security reasons, a user does not include the logon string in the script file, it can be entered on the command line when BTEQ is invoked from a Workstation or the JCL PARM parameter in BTEQ STEP when BTEQ is invoked from Mainframe.
For example, on a Workstation, if the LOGON command is deleted from the SAMPFILE script, invoke BTEQ and run the script by entering the following command-line text:
bteq .LOGON tdpid/userid,password < SAMPFILE
On Mainframe, JCL PARM can be used to pass the logon command.
//BTEQ00 EXEC PGM=BTQMAIN,PARM='/.LOGON tdpid/userid,password'