GLOP Data Access From an External Routine | Teradata Vantage - GLOP Data Access From an External Routine - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

To access GLOP data, a C or C++ external routine must first use the FNC_Get_GLOP_Map library function to gain access to the GLOP set of which the external routine is a member.

The function returns a pointer to a structure that is an array of eight data references, the maximum number of GLOP mappings in a GLOP set.

The context in which a particular external routine runs determines the actual data that the external routine has access to.

For example, the following diagram illustrates the GLOP data available to an external routine that is invoked by user jsmith012 who has been granted a Finance role.


GLOP data made available to Finance role user

If the external routine is also invoked by user sgonzales003, who has been granted the Sales role, the GLOP data that is available can be illustrated like this:


GLOP data made available to Sales role user