<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Teradata UDFs on</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/</link><description>Recent content in Teradata UDFs on</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/index.xml" rel="self" type="application/rss+xml"/><item><title>General UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_gen_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_gen_udfs/</guid><description>&lt;p>This section includes the general UDFs that can be used to retrieve the Teradata Protector version and the current user.&lt;/p>
&lt;h2 id="pty_whoami">pty_whoami&lt;/h2>
&lt;p>This UDF returns the name of the user who is currently logged in.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_whoami()
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>
None&lt;/p>
&lt;p>&lt;strong>Returns:&lt;/strong>&lt;br>
The function returns the name of user logged in to the database.&lt;/p>
&lt;p>&lt;strong>Example:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>select pty_whoami();
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="pty_getversion">pty_getversion&lt;/h2>
&lt;p>This UDF returns the version of the installed Teradata Data Warehouse Protector.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_getversion()
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>
None&lt;/p></description></item><item><title>Access Check UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_acc_che_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_acc_che_udfs/</guid><description>&lt;p>This section includes list of UDFs that can be used to check select access-related information.&lt;/p>
&lt;h2 id="pty_checkselaccess">pty_checkselaccess&lt;/h2>
&lt;p>This UDF checks whether a database user has unprotect access for a set of data elements. To run this UDF, the database user should be granted access rights for protection.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_checkselaccess(dataelement&amp;lt;n&amp;gt; VARCHAR, resultlen INTEGER, communicationid INTEGER)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>dataelement1&lt;/code>&lt;/td>
 &lt;td>VARCHAR&lt;/td>
 &lt;td>Specifies the name of the data element to check.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement2&lt;/code>&lt;/td>
 &lt;td>VARCHAR&lt;/td>
 &lt;td>Specifies the name of the data element to check.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement3&lt;/code>&lt;/td>
 &lt;td>VARCHAR&lt;/td>
 &lt;td>Specifies the name of the data element to check.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>resultlen&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specifies the length of the buffer to hold the result.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>communicationid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;code>0&lt;/code>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Returns:&lt;/strong>&lt;br>&lt;br>
The function returns a 3-CHARACTER string.&lt;/p></description></item><item><title>Varchar Latin UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_var_lat_udf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_var_lat_udf/</guid><description>&lt;p>The Varchar Latin UDFs accept the string data encoded in the Latin character set.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Important:&lt;/strong> Do not exceed the maximum output buffer length when using the result length parameter (&lt;code>resultlen&lt;/code>) in the Varchar Latin UDFs.&lt;br> For more information about the maximum output buffer length, for each Varchar Latin UDF, refer to &lt;a href="https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_teradata/dwp_ter_install_prot/dwp_teradata_install_objects/">Installing the Teradata Objects&lt;/a>.&lt;/p>&lt;/blockquote>
&lt;h2 id="pty_varcharlatinenc">pty_varcharlatinenc&lt;/h2>
&lt;p>This UDF protects the string data using an Encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-gdscript3" data-lang="gdscript3">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">pty_varcharlatinenc&lt;/span>&lt;span style="color:#000;font-weight:bold">(&lt;/span>&lt;span style="color:#000">col&lt;/span> &lt;span style="color:#000">VARCHAR&lt;/span>&lt;span style="color:#000;font-weight:bold">,&lt;/span> &lt;span style="color:#000">dataelement&lt;/span> &lt;span style="color:#000">VARCHAR&lt;/span>&lt;span style="color:#000;font-weight:bold">,&lt;/span> &lt;span style="color:#000">resultlen&lt;/span> &lt;span style="color:#000">INTEGER&lt;/span>&lt;span style="color:#000;font-weight:bold">,&lt;/span> &lt;span style="color:#000">communicationid&lt;/span> &lt;span style="color:#000">INTEGER&lt;/span>&lt;span style="color:#000;font-weight:bold">,&lt;/span> &lt;span style="color:#000">scid&lt;/span> &lt;span style="color:#000">INTEGER&lt;/span>&lt;span style="color:#000;font-weight:bold">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Varchar Unicode UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_var_uni_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_var_uni_udfs/</guid><description>&lt;p>The Varchar Unicode UDFs accept the string data encoded in the UNICODE character set.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Important:&lt;/strong> Do not exceed the maximum output buffer length when using the result length parameter (&lt;code>resultlen&lt;/code>) in the Varchar Unicode UDFs.&lt;br>
For more information about the maximum output buffer length, for each Varchar Unicode UDF, refer to &lt;a href="https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_teradata/dwp_ter_install_prot/dwp_teradata_install_objects/">Installing the Teradata Objects&lt;/a>.&lt;/p>&lt;/blockquote>
&lt;h2 id="pty_varcharunicodeenc">pty_varcharunicodeenc&lt;/h2>
&lt;p>This UDF protects the Unicode string using an Encryption data element for encryption.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p></description></item><item><title>Float UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_flo_udf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_flo_udf/</guid><description>&lt;h2 id="pty_floatenc">pty_floatenc&lt;/h2>
&lt;p>This UDF protects the float value using an Encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_floatenc(col FLOAT, dataelement VARCHAR, resultlen INTEGER, communicationid INTEGER, scid INTEGER)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>col&lt;/code>&lt;/td>
 &lt;td>FLOAT&lt;/td>
 &lt;td>Specifies the data to protect.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>VARCHAR&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>resultlen&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specifies the length of the buffer to hold the result.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>communicationid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Returns:&lt;/strong>&lt;br>
The function returns the protected VARBYTE value.&lt;/p></description></item><item><title>Small Integer UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_sint_udf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_sint_udf/</guid><description>&lt;h2 id="pty_smallintenc">pty_smallintenc&lt;/h2>
&lt;p>This UDF protects the small integer value using an Encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_smallintenc(col SMALLINT, dataelement VARCHAR, resultlen INTEGER, communicationidINTEGER, scid INTEGER)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>col&lt;/code>&lt;/td>
 &lt;td>SMALLINT&lt;/td>
 &lt;td>Specifies the data to protect.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>VARCHAR&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>resultlen&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specifies the length of the buffer to hold the result.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>communicationid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Returns:&lt;/strong>&lt;br>
The function returns the protected VARBYTE value.&lt;/p></description></item><item><title>Integer UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_int_udf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_int_udf/</guid><description>&lt;h2 id="pty_integerenc">pty_integerenc&lt;/h2>
&lt;p>This UDF protects integer value using an Encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_integerenc(col INTEGER, dataelement VARCHAR, resultlen INTEGER, communicationid INTEGER, scid INTEGER)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>col&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specifies the data to protect.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>VARCHAR&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>resultlen&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specifies the length of the buffer to hold the result.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>communicationid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Returns:&lt;/strong>&lt;br>
The function returns the protected VARBYTE value.&lt;/p></description></item><item><title>Big Integer UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_bint_udf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_bint_udf/</guid><description>&lt;h2 id="pty_bigintenc">pty_bigintenc&lt;/h2>
&lt;p>This UDF protects the Big Integer value using a data element for encryption.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_bigintenc(col BIGINT, dataelement VARCHAR, resultlen INTEGER, communicationid INTEGER, scid INTEGER)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>col&lt;/code>&lt;/td>
 &lt;td>VARBYTE&lt;/td>
 &lt;td>Specifies the data to unprotect.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>VARCHAR&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>resultlen&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specifies the length of the buffer to hold the result.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>communicationid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Returns:&lt;/strong>&lt;br>&lt;br>
The function returns the protected VARBYTE value.&lt;/p></description></item><item><title>Date UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_dat_udf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_dat_udf/</guid><description>&lt;p>The dates can be protected using encryption and tokenization as the data protection method. The native UDFs, such as, &lt;code>pty_dateenc&lt;/code> and &lt;code>pty_datedec&lt;/code>, can be used for encryption and decryption respectively. To tokenize the date formats using the date data element, the data must be cast to VARCHAR type and then protected/unprotected with PTY_VARCHARLATININS/PTY_VARCHARLATINSEL UDFs.&lt;/p>
&lt;p>To avoid any performance issues resulting due to casting of the data, a general best practice is to protect the data and present the decryption-related UDFs in the tables as views to authorized users only. This eliminates the unauthorized user’s access to the decryption UDFs and has the protected data only. The decryption process is limited to authorized users and thus, doesn’t cause any performance impact as the UDFs are executed restrictively.&lt;/p></description></item><item><title>8-Byte and 16-Byte Decimal UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_byt_and_dec_udf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_byt_and_dec_udf/</guid><description>&lt;p>These UDFs work on the Decimal data types that are either 8 or 16 bytes in size. The 8-byte Decimal data types have a precision between 10 and 18 digits, while the 16-byte Decimals have a precision between 19 and 38 digits.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Note:&lt;/strong> Only one set of Decimal UDFs can be created for each range. The user must provide the UDF name. It is recommended that you replace &lt;n> with, for example, 10_2 if the target data type is Decimal(10,2) to get a function pty_decimal_10_2enc, or 22_3 if the target data type is Decimal(22,3) to get pty_decimal_22_3enc.&lt;/p></description></item><item><title>JSON UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_json_udf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_json_udf/</guid><description>&lt;p>These UDFs are used to protect and unprotect data for JSON data type. These UDFs have been introduced to support LOB or Large Objects that can be loaded to or extracted from the Teradata Database tables. Depending on the data element chosen, the data is tokenized or encrypted. The data in JSON are protected as CLOBs.&lt;/p>
&lt;p>The examples provided for protection and unprotection are for single queries.&lt;/p>
&lt;h2 id="pty_jsonins">pty_jsonins&lt;/h2>
&lt;p>This UDF protects the JSON value using the type-preserving data elements, such as, token and No Encryption data element for access control.&lt;/p></description></item><item><title>XML UDFs</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_xml_udf/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_xml_udf/</guid><description>&lt;p>These UDFs support the XML data type. The XML content is stored in compact binary form or CLOBs that preserve the information set of the XML document. These UDFs have been introduced to support the XML files that can be loaded to or extracted from the Teradata Database tables. Depending on the data element chosen, the data is either tokenized or encrypted.&lt;/p>
&lt;h2 id="pty_xmlins">pty_xmlins&lt;/h2>
&lt;p>This UDF protects the XML value using type-preserving data elements, such as, token and No Encryption for access control.&lt;/p></description></item><item><title>Float UDFs for No Encryption</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_flo_udf_noenc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_flo_udf_noenc/</guid><description>&lt;h2 id="pty_floatins">pty_floatins&lt;/h2>
&lt;p>This UDF can be used only with the No Encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_floatins(col FLOAT, dataelement VARCHAR, resultlen INTEGER, communicationid INTEGER, scid INTEGER)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>col&lt;/code>&lt;/td>
 &lt;td>FLOAT&lt;/td>
 &lt;td>Specifies the data to protect.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>VARCHAR&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>resultlen&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specifies the length of the buffer to hold the result.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>communicationid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Returns:&lt;/strong>&lt;br>
The function returns the input value as it is.&lt;/p></description></item><item><title>Date UDFs for No Encryption</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_dat_udf_noenc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_dat_udf_noenc/</guid><description>&lt;p>This section provides DATE UDFs that are applicable for No Encryption data elements.&lt;/p>
&lt;h2 id="pty_dateins">pty_dateins&lt;/h2>
&lt;p>This UDF protects a date value with a No Encryption data element to impose access control.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_dateins(col DATE, dataelement VARCHAR, resultlen INTEGER, communicationid INTEGER, scid INTEGER)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>&lt;code>col&lt;/code>&lt;/td>
 &lt;td>DATE&lt;/td>
 &lt;td>Specifies the data to protect.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>VARCHAR&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>resultlen&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specifies the length of the buffer to hold the result.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>communicationid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>INTEGER&lt;/td>
 &lt;td>Specify the value as &lt;em>0&lt;/em>. This parameter is deprecated.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Returns:&lt;/strong>&lt;br>
The function returns the input value as is.&lt;/p></description></item><item><title>8-Byte AND 16-Byte Decimal UDFs for No Encryption</title><link>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_byt_and_dec_udf_noenc/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.1/docs/dwp/dwp_udfs/dwp_ter_udfs/dwp_ter_byt_and_dec_udf_noenc/</guid><description>&lt;p>These UDFs work on the Decimal data types that are either 8 or 16 bytes in size. The 8-byte Decimals have a precision between 10 and 18 digits, while the 16-byte Decimals have a precision between 19 and 38 digits. These UDFs apply to the No Encryption data elements only.&lt;/p>
&lt;h2 id="pty_decimalins">pty_decimal&lt;n>ins&lt;/h2>
&lt;p>This UDF protects the decimal value using a No Encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>pty_decimal&amp;lt;n&amp;gt;ins(col DECIMAL&amp;lt;M,N&amp;gt;, dataelement VARCHAR, resultlen INTEGER, communicationid INTEGER, scid INTEGER)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;strong>Parameters:&lt;/strong>&lt;br>&lt;/p></description></item></channel></rss>