Source File Name Clause: CREATE FUNCTION and REPLACE FUNCTION (External Form) - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The Source File Name clause specifies the location of an object file that is to be used for this UDF definition.

The syntax for this clause is either of the following.

  • CS¡ name_on_server¡ source_name
  • SS¡ name_on_server¡ source_name

    The character ¡ represents a user-defined delimiter.

Follow these steps to specify a source file name string.

  1. Begin the clause with the appropriate client or server location code.
    Location Code Function Source or Object Code Storage Location
    C Client
    S Server
  2. Type the character S to indicate this is a source file specification.
  3. Specify an arbitrary delimiter character to separate the S code and the name_on_server variable specified in the string.
  4. Specify the name assigned to the source file on the platform.

    Every name_on_server must be unique among the UDFs and external procedures created within the same database. If the CREATE/REPLACE FUNCTION definition includes a nonunique name_on_server specification, Vantage does not create it.

  5. Specify your delimiter character to separate the name_on_server from the source_name.
  6. Specify the path and name of the source file.

    You can use either \ or / characters to specify the path for all platforms.