<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do you use a UDF Snowflake function in SAS EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-use-a-UDF-Snowflake-function-in-SAS-EG/m-p/821156#M324189</link>
    <description>&lt;P&gt;How are you calling that function?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it being called for you when you try to run that last query?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that query pulling from a view that is calling the function?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does SNOWFLAKE have some type of "search path" for UDF?&amp;nbsp; Are you sure you have configured your Session properly to find it?&amp;nbsp; Does the snowflake account you are connecting with have permission to use it?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2022 15:00:48 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-06-30T15:00:48Z</dc:date>
    <item>
      <title>How do you use a UDF Snowflake function in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-use-a-UDF-Snowflake-function-in-SAS-EG/m-p/821131#M324174</link>
      <description>&lt;P&gt;I’m using the below code to connect to Snowflake via SAS Fusion without error.&amp;nbsp; However, there’s a function on the database that is needed but SAS is producing an error.&amp;nbsp; When connecting to Snowflake via the web, this function works. &amp;nbsp;Are there any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function:&lt;/P&gt;&lt;P&gt;OCDP_SECURITY.DPAAS_DETOKEN_NAME(FIRST_NAME) AS FIRST_NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;ERROR: CLI prepare error: SQL compilation error: Unknown user-defined function OCDP_SECURITY.DPAAS_DETOKEN_NAME&lt;/P&gt;&lt;P&gt;SQL statement: SELECT OCDP_SECURITY.DPAAS_DETOKEN_NAME(FIRST_NAME) AS FIRST_NAME FROM OCDP_PRD_CDCM_DB.CDCM.PATIENT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET SERVER=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxx.com;&lt;/P&gt;&lt;P&gt;%LET UID=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xxxxx;&lt;/P&gt;&lt;P&gt;%LET PRIV_KEY_FILE_UNENCR=&amp;nbsp;&amp;nbsp; /hpsasocd/idpwd/&amp;amp;sysuserid./rsa_key.prv;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME SNOW_PT ODBC COMPLETE="&lt;/P&gt;&lt;P&gt;DRIVER={/usr/lib64/snowflake/odbc/lib/libSnowflake.so};&lt;/P&gt;&lt;P&gt;AUTHENTICATOR=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SNOWFLAKE_JWT;&lt;/P&gt;&lt;P&gt;SERVER=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;SERVER;&lt;/P&gt;&lt;P&gt;UID=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;UID;&lt;/P&gt;&lt;P&gt;PRIV_KEY_FILE=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;PRIV_KEY_FILE_UNENCR;&lt;/P&gt;&lt;P&gt;PRIV_KEY_FILE_PWD=;&lt;/P&gt;&lt;P&gt;Warehouse=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OCDP_PRD_QUERY_WH;&lt;/P&gt;&lt;P&gt;Role=AR_PRD_ROLE;&lt;/P&gt;&lt;P&gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;SQL&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;CONNECT USING SNOW_PT AS SF;&lt;/P&gt;&lt;P&gt;CREATE TABLE TEST_PASSTHRU AS SELECT *&lt;/P&gt;&lt;P&gt;FROM CONNECTION TO SF&lt;/P&gt;&lt;P&gt;(SELECT *&lt;/P&gt;&lt;P&gt;FROM OCDP_PRD_CDCM_DB.CDCM.TENANT&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 13:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-use-a-UDF-Snowflake-function-in-SAS-EG/m-p/821131#M324174</guid>
      <dc:creator>dstratm</dc:creator>
      <dc:date>2022-06-30T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use a UDF Snowflake function in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-use-a-UDF-Snowflake-function-in-SAS-EG/m-p/821156#M324189</link>
      <description>&lt;P&gt;How are you calling that function?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it being called for you when you try to run that last query?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that query pulling from a view that is calling the function?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does SNOWFLAKE have some type of "search path" for UDF?&amp;nbsp; Are you sure you have configured your Session properly to find it?&amp;nbsp; Does the snowflake account you are connecting with have permission to use it?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 15:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-use-a-UDF-Snowflake-function-in-SAS-EG/m-p/821156#M324189</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-06-30T15:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use a UDF Snowflake function in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-use-a-UDF-Snowflake-function-in-SAS-EG/m-p/821882#M324500</link>
      <description>&lt;P&gt;The function is being called when running the below query.&amp;nbsp; When submitted to Snowflake via web, there's no issues.&amp;nbsp; If I run the same query as pass-through via SAS, I get error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select ocdp_security.dpaas_detoken_name(FIRST_NAME)&lt;BR /&gt;from cdcm.patient (TABLE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under the Information_Schema view is where the function resides&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dstratm_1-1657118796965.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72983iE904D4AD758A7B95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dstratm_1-1657118796965.png" alt="dstratm_1-1657118796965.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 16:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-use-a-UDF-Snowflake-function-in-SAS-EG/m-p/821882#M324500</guid>
      <dc:creator>dstratm</dc:creator>
      <dc:date>2022-07-06T16:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do you use a UDF Snowflake function in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-use-a-UDF-Snowflake-function-in-SAS-EG/m-p/821917#M324512</link>
      <description>&lt;P&gt;Please post the complete SAS log of your program, including the error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 19:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-use-a-UDF-Snowflake-function-in-SAS-EG/m-p/821917#M324512</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-07-06T19:58:34Z</dc:date>
    </item>
  </channel>
</rss>

