16.20 - GLOP Data Access From an External Routine - 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)

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