Omitting the Userid and Password from the Script File - Basic Teradata Query - 16.20

Basic Teradata Query Reference

prodname
Basic Teradata Query
vrm_release
16.20
category
Programming Reference
featnum
B035-2414-108K

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'