15.10 - Example: Creating an External Procedure With SQL CLIv2 Callability - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

The following C language external procedure definition creates a procedure named xsp_abc that can modify SQL data using the CLIv2 API:

     CREATE PROCEDURE xsp_abc(IN  param1  INTEGER, 
                              OUT result1 INTEGER)
     LANGUAGE C
     MODIFIES SQL DATA
     PARAMETER STYLE SQL
     EXTERNAL NAME 'SP!CLI!CS!xsp_abc!xsp_abc.c';