17.10 - Example: Table Operator Function Written in SAS - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

This table operator function is written in SAS, which uses the SQLTABLE parameter style.

     CREATE FUNCTION sas_transform (
     RETURNS TABLE VARYING USING FUNCTION
     LANGUAGE SAS
     PARAMETER STYLE SQLTABLE
     DETERMINISTIC
     RETURN 'optional SAS code text'
     EXTERNAL NAME 'sas_transform_udf:sas_transform_UDF.GetSASCodeText';