How to Omit the Userid and Password from the Script File | Basic Teradata Query - 17.00 - Omitting the Userid and Password from the Script File - Basic Teradata Query

Basic Teradata® Query Reference

prodname
Basic Teradata Query
vrm_release
17.00
created_date
June 2020
category
Programming Reference
featnum
B035-2414-220K

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'