BTEQ Script Processing for Alert Notifications | Teradata Viewpoint - BTEQ Script Processing - Teradata Viewpoint

Teradata® Viewpoint User Guide - 26.02

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Lake
Product
Teradata Viewpoint
Release Number
26.02
Publication Date
June 2026
Content Type
User Guide
Publication ID
B035-2206-066K
ft:locale
en-US
ft:lastEdition
2026-06-02
dita:mapPath
dvd1779831456766.ditamap
dita:ditavalPath
tky1501004671670.ditaval
ft:sourceId
dita
dita:id
xvu1467243446040
Product Category
Analytical Ecosystem
When you configure Teradata Alerts to run a BTEQ script as an alert action, the process creates a logon session with the Teradata system, runs the script to completion, and ends the session. Teradata Alerts processes BTEQ scripts sequentially as shown in the following table.
BTEQ Command Description Details Executed
.LOGON. Creates a logon session Enters the TDPID, Account ID, Username and Password that you used when creating the BTEQ configuration
Because you define login credentials in the Alert Setup portlet, make sure that BTEQ scripts do not contain the .LOGON. command.
Automatically
.LOGMECH. Provides extra information for a logon session Enters the optional Logmech Name Must define Logmech Name when creating the BTEQ configuration
.LOGDATA. Provides extra information for a logon session Enters the optional Logmech Name and the corresponding Logmech Data Must define Logmech Name and the corresponding Logmech Data when creating the BTEQ configuration
.RUN FILE. Executes the BTEQ script Executes the commands in the BTEQ script in InstallFolder\Teradata\Client\16.20\Teradata Notification Service\sql that is available from the Script list when you created a BTEQ action set Automatically
.QUIT. Logs out of the session   Automatically