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

Basic Teradata Query Reference

Product
Basic Teradata Query
Release Number
16.20
Published
October 2018
Language
English (United States)
Last Update
2020-02-20
dita:mapPath
kil1527114222313.ditamap
dita:ditavalPath
Audience_PDF_include.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'