<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DB2 User Defined Functions and APIs on</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/</link><description>Recent content in DB2 User Defined Functions and APIs on</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/index.xml" rel="self" type="application/rss+xml"/><item><title>General UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_gen_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_gen_udfs/</guid><description>&lt;p>This section includes list of general UDFs that can be used to retrieve the DB2 Protector version and the current user.&lt;/p>
&lt;h2 id="ptywhoami">pty.whoami&lt;/h2>
&lt;p>The UDF returns the name of the user.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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>Result:&lt;/strong>&lt;br>&lt;/p>
&lt;ul>
&lt;li>This UDF returns the name of user logged on to the database as VARCHAR(256).&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>Example:&lt;/strong>&lt;br>&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() FROM SYSIBM.SYSDUMMY1;
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="ptygetversion">pty.getversion&lt;/h2>
&lt;p>The UDF returns the version number of the DB2 protector.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Access Check UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_acc_check_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_acc_check_udfs/</guid><description>&lt;p>These UDFs are used to check access permissions. The functions returns &lt;code>1&lt;/code> if the user has access. Otherwise, it returns a 0 (zero).&lt;/p>
&lt;h2 id="ptyhave_sel_perm">pty.have_sel_perm&lt;/h2>
&lt;p>The UDF verifies whether the user has &lt;code>select&lt;/code> or &lt;code>unprotect&lt;/code> access to the data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.have_sel_perm(communicationid INTEGER, dataelement VARCHAR)
&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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>VarChar UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_varchar_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_varchar_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>VARCHAR&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_varchar">pty.ins_enc_varchar&lt;/h2>
&lt;p>The UDF encrypts the &lt;code>VARCHAR&lt;/code> data with an encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">.&lt;/span>&lt;span style="color:#000">ins_enc_varchar&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">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">data&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">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>
&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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>data&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(32672)&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>VarChar for Bit Data UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_varchar_bit_data_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_varchar_bit_data_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>VARCHAR FOR BIT DATA&lt;/code>.&lt;/p>
&lt;h2 id="ptyins_enc_varcharfbd">pty.ins_enc_varcharfbd&lt;/h2>
&lt;p>The UDF encrypts the &lt;code>VARCHAR FOR BIT DATA&lt;/code> value with an encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">.&lt;/span>&lt;span style="color:#000">ins_enc_varcharfbd&lt;/span>&lt;span style="color:#000;font-weight:bold">(&lt;/span>&lt;span style="color:#000">comm_id&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">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">input_data&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">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>
&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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(32672) FOR BIT DATA&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Char UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_char_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_char_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>CHAR&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_char">pty.ins_enc_char&lt;/h2>
&lt;p>The UDF protects the &lt;code>CHAR&lt;/code> data with an encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_char(comm_id INTEGER, dataelement VARCHAR, input_data CHAR, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(254)&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Char for Bit Data UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_char_bit_data_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_char_bit_data_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>CHAR FOR BIT DATA&lt;/code>.&lt;/p>
&lt;h2 id="ptyins_enc_charfbd">pty.ins_enc_charfbd&lt;/h2>
&lt;p>The UDF encrypts the &lt;code>CHAR FOR BIT DATA&lt;/code> value with an encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_charfbd(comm_id INTEGER, dataelement VARCHAR, input_data VARCHAR, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(254) FOR BIT DATA&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Long VarChar UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_long_varchar_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_long_varchar_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>LONG VARCHAR&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_lvarchar">pty.ins_enc_lvarchar&lt;/h2>
&lt;p>The UDF encrypts the &lt;code>LONG VARCHAR&lt;/code> data with an encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">.&lt;/span>&lt;span style="color:#000">ins_enc_lvarchar&lt;/span>&lt;span style="color:#000;font-weight:bold">(&lt;/span>&lt;span style="color:#000">comm_id&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">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">input_data&lt;/span> &lt;span style="color:#000">LONG&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">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>
&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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>LONG VARCHAR&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Long VarChar for Bit Data UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_long_varchar_bit_data_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_long_varchar_bit_data_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>LONG VARCHAR FOR BIT DATA&lt;/code>.&lt;/p>
&lt;h2 id="ptyins_enc_lvcfbd">pty.ins_enc_lvcfbd&lt;/h2>
&lt;p>The UDF encrypts the &lt;code>LONG VARCHAR FOR BIT DATA&lt;/code> value with an encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_lvcfbd(comm_id INTEGER, dataelement VARCHAR, input_data LONG VARCHAR FOR BIT DATA, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>LONG VARCHAR FOR BIT DATA&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Date UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_date_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_date_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>DATE&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_date">pty.ins_enc_date&lt;/h2>
&lt;p>The UDF encrypts a &lt;code>DATE&lt;/code> value with an encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_date(comm_id INTEGER, dataelement VARCHAR, input_data DATE, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>DATE&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Timestamp UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_timestamp_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_timestamp_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>TIMESTAMP&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_timestamp">pty.ins_enc_timestamp&lt;/h2>
&lt;p>The UDF encrypts a &lt;code>TIMESTAMP&lt;/code> value with an encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_timestamp(comm_id INTEGER, dataelement VARCHAR, input_data TIMESTAMP, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>TIMESTAMP&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Time UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_time_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_time_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>TIME&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_time">pty.ins_enc_time&lt;/h2>
&lt;p>The UDF encrypts &lt;code>TIME&lt;/code> value with an encryption data element.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_time(comm_id INTEGER, dataelement VARCHAR, input_data TIME, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>TIME&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Integer UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_integer_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_integer_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>INTEGER&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_integer">pty.ins_enc_integer&lt;/h2>
&lt;p>The UDF protects the &lt;code>INTEGER&lt;/code> data with a data element for encryption.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_integer(comm_id INTEGER, dataelement VARCHAR, input_data 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>SmallInt UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_small_int_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_small_int_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>SMALLINT&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_smallint">pty.ins_enc_smallint&lt;/h2>
&lt;p>The UDF encrypts the &lt;code>SMALL INTEGER&lt;/code> data with a data element for encryption.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_smallint(comm_id INTEGER, dataelement VARCHAR, input_data SMALLINT, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>SMALLINT&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>BigInt UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_big_int_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_big_int_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>BIGINT&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_bigint">pty.ins_enc_bigint&lt;/h2>
&lt;p>The UDF encrypts the &lt;code>BIG INTEGER&lt;/code> data with a data element for encryption.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_bigint(comm_id INTEGER, dataelement VARCHAR, input_data BIGINT, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>BIGINT&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Real UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_real_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_real_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>REAL&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_real">pty.ins_enc_real&lt;/h2>
&lt;p>The UDF encrypts &lt;code>REAL&lt;/code> data with a data element for encryption.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_real(comm_id INTEGER, dataelement VARCHAR, input_data REAL, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>REAL&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Double UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_double_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_double_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>DOUBLE&lt;/code> data.&lt;/p>
&lt;h2 id="ptyins_enc_double">pty.ins_enc_double&lt;/h2>
&lt;p>The UDF encrypts the &lt;code>DOUBLE&lt;/code> data with a data element for encryption.&lt;/p>
&lt;p>&lt;strong>Signature:&lt;/strong>&lt;br>&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.ins_enc_double(comm_id INTEGER, dataelement VARCHAR, input_data DOUBLE, 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>communicationid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the location where the UDF will find the policy. The value must be the same as configured in the &lt;code>config.ini&lt;/code> file.&lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>dataelement&lt;/code>&lt;/td>
 &lt;td>&lt;code>VARCHAR(64)&lt;/code>&lt;/td>
 &lt;td>Specifies the name of the data element.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>input_data&lt;/code>&lt;/td>
 &lt;td>&lt;code>DOUBLE&lt;/code>&lt;/td>
 &lt;td>Specifies the input data.&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;code>scid&lt;/code>&lt;/td>
 &lt;td>&lt;code>INTEGER&lt;/code>&lt;/td>
 &lt;td>Specifies the security coordinate ID. Set the value of the parameter to zero. &lt;br> &lt;strong>Note:&lt;/strong> This parameter is no longer used and is retained for compatibility purposes only.&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;p>&lt;strong>Result:&lt;/strong>&lt;br>&lt;/p></description></item><item><title>Blob UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_blob_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_blob_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>BLOB&lt;/code> data.&lt;/p>
&lt;blockquote>
&lt;p>** Note:** The BLOB UDFs support a maximum input size of 2,147,483,576 bytes, which is approximately 2GB. The the protected output can be up to 2,147,483,610 bytes. Large operations are memory intensive. For example, 2 GB operation can require several gigabytes of memory per member. Ensure the instance is sized adequately. For example, the INSTANCE_MEMORY should be 16 GB or higher. Otherwise, the UDFs may fail with the SQL0930N error.&lt;/p></description></item><item><title>Clob UDFs</title><link>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_clob_udfs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/protectors/10.0/docs/database_protector/dbp_api_udfs/db2_api_udfs/dbp_db2_clob_udfs/</guid><description>&lt;p>The UDFs, listed in this section, protect and unprotect &lt;code>CLOB&lt;/code> data.&lt;/p>
&lt;blockquote>
&lt;p>&lt;strong>Note:&lt;/strong> The CLOB UDFs support a maximum input size of 2,147,483,576 bytes, which is approximately 2GB. The protected output can be up to 2,147,483,610 bytes. Use the BLOB UDFs for binary data like images, audio, and video. This is because the CLOB codepage conversion can corrupt binary content. Large operations are memory intensive. For example, 2 GB operation can require several gigabytes of memory per member. Ensure the instance is sized adequately. For example, the INSTANCE_MEMORY should be 16 GB or higher. Otherwise, the UDFs may fail with the SQL0930N error.&lt;/p></description></item></channel></rss>