16.20 - context - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

Purpose

This command specifies the threads on which subsequent commands to the debugger will operate.

Syntax

context all
context thread-selectors [...]

Where syntax element thread-selectors specifies a string that selects one or more UDF threads being debugged.

Usage Notes

You can specify one or more specific threads, or all threads to include all currently active threads. When the context contains multiple threads, commands operate on all of them serially. The output for each thread contains a line that identifies the thread followed by a line of command-related information. After a breakpoint or other exception stops a thread, the context defaults to that thread making it the current context.

You can use @ as a synonym for the context command. If context is used, it must be fully spelled out.