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

Basic Teradata® Query Reference

Product
Basic Teradata Query
Release Number
17.10
Published
February 2022
Language
English (United States)
Last Update
2022-02-03
dita:mapPath
nnw1608578382132.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
B035-2414
lifecycle
previous
Product Category
Teradata Tools and Utilities

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'