<?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: Proc Pwencode in oledb libname in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356062#M64232</link>
    <description>&lt;P&gt;Hi ccaulkin,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply! But I am not sure I fully understood your response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please give an example of what you suggested?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 18:11:22 GMT</pubDate>
    <dc:creator>path2success</dc:creator>
    <dc:date>2017-05-04T18:11:22Z</dc:date>
    <item>
      <title>Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/355825#M64219</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I want to use PRCO PWENCODE on the libname statement given below-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;libname testme oledb schema=tstsch init_string="Provider=OraOLEDB.Oracle.1;&lt;BR /&gt;&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;Password=creatmepsswd; &lt;BR /&gt;&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;User ID=createmeusr;&lt;BR /&gt;&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;Data Source=TESTDS;&lt;BR /&gt;&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;Persist Security Info=True;";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am able to use the PROC PWENCODE and get&amp;nbsp;the encoded password but I insert it in the password statement, I get an error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For ex: if the encoded password is-&amp;nbsp;{SAS002}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, then when I update my libname statement , I get an error right at the "{" before the "SAS...".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;libname testme oledb schema=tstsch init_string="Provider=OraOLEDB.Oracle.1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;Password="{SAS002}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;User ID=createmeusr;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;Data Source=TESTDS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;Persist Security Info=True;";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any idea, what I might be doing wrong here or is the syntax wrong?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any suggestions are tremendously helpful!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 02:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/355825#M64219</guid>
      <dc:creator>path2success</dc:creator>
      <dc:date>2017-05-04T02:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/355874#M64223</link>
      <description>&lt;P&gt;I'd try removing the interior quotes around the password as these are probably confusing SAS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;init_string="Provider=OraOLEDB.Oracle.1;
                           Password={SAS002}xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; 
                           User ID=createmeusr;
                           Data Source=TESTDS;
                           Persist Security Info=True;";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If that doesn't work, try enclosing the password in single quotes instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 08:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/355874#M64223</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-04T08:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356007#M64229</link>
      <description>&lt;P&gt;Thanks SASKiwi. Unfortunately, neither of those work.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 15:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356007#M64229</guid>
      <dc:creator>path2success</dc:creator>
      <dc:date>2017-05-04T15:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356008#M64230</link>
      <description>&lt;P&gt;If it helps, what my intent is -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We use the above libname statement(here I have used TEST case for privacy purposes) very often for pulling our data. However, I want to create a macro that will encode or mask the password and username in this libname statement and the programmer could call it as a one line macro or use it as a macro variable in the libname for the password and username.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using "autoexec" is not a good option b/c the programmer could just go to the location where the libname statement is saved and get the password.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought proc pwencode would be &amp;nbsp;a best option but I am not able to figure it out to work for this libname statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 15:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356008#M64230</guid>
      <dc:creator>path2success</dc:creator>
      <dc:date>2017-05-04T15:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356057#M64231</link>
      <description>Hi, path - Your intentions being equally good and somewhat redundant, you could try to pass the encrypted values into global variables in autoexec.sas - thus modifying the metadata of the SAS Intelligence platform you might be using. Let me know if you've used this approach before - Regards, Chad Caulkins</description>
      <pubDate>Thu, 04 May 2017 17:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356057#M64231</guid>
      <dc:creator>ccaulkins9</dc:creator>
      <dc:date>2017-05-04T17:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356062#M64232</link>
      <description>&lt;P&gt;Hi ccaulkin,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply! But I am not sure I fully understood your response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please give an example of what you suggested?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 18:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356062#M64232</guid>
      <dc:creator>path2success</dc:creator>
      <dc:date>2017-05-04T18:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356100#M64236</link>
      <description>Attribute the password to a global password as defined in autoexec.sas, i.e. %global g_password ; %let g_password='{SAS002}XXXXXXX'...</description>
      <pubDate>Thu, 04 May 2017 20:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356100#M64236</guid>
      <dc:creator>ccaulkins9</dc:creator>
      <dc:date>2017-05-04T20:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356180#M64239</link>
      <description>&lt;P&gt;Please post what you tried and the error from your SAS log.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356180#M64239</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-04T23:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356183#M64240</link>
      <description>&lt;P&gt;This is what I did-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My autoexec_nu.sas file has this code(as below);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%global g_password ; 
%let g_password='{SAS002}3FE1903252C09F4A1054A17D01ED6AE63F2D401C';


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then in another SAS file , I am calling this g_password in the libname statement and I am gettig this error-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%INCLUDE "C:\Users\newusr\SAS\autoexec_nu.SAS"; - &lt;STRONG&gt;&lt;EM&gt;this is where my autoexec_nu file is saved&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;libname test oledb schema=tstsh init_string="Provider=OraOLEDB.Oracle.1;&lt;BR /&gt; Password="&lt;STRONG&gt;&amp;amp;g_password&lt;/STRONG&gt;"; &lt;BR /&gt; User ID=tstusr;&lt;BR /&gt; Data Source=tstds;&lt;BR /&gt; Persist Security Info=True;";&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;LOG:&lt;/STRONG&gt;&lt;BR /&gt;7 libname test oledb schema=tstsh init_string="Provider=OraOLEDB.Oracle.1;&lt;BR /&gt;8 Password="&amp;amp;g_password";&lt;BR /&gt;NOTE: Line generated by the macro variable "G_PASSWORD".&lt;BR /&gt;1 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'{SAS002}3FE1903252C09F4A1054A17D01ED6AE63F2D&lt;BR /&gt;&lt;BR /&gt;--------------------------------------------------&lt;BR /&gt; 22&lt;BR /&gt;1 ! 401C'&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 22-7: Invalid option name '{SAS002}3FE1903252C09F4A1054A17D01ED6AE63F2D401C'.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;9 User ID=tstusr;&lt;BR /&gt;10 Data Source=tstds;&lt;BR /&gt;11 Persist Security Info=True;";&lt;BR /&gt;ERROR: Libref test is not assigned.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;BR /&gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 23:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356183#M64240</guid>
      <dc:creator>path2success</dc:creator>
      <dc:date>2017-05-04T23:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356187#M64241</link>
      <description>&lt;P&gt;Is it the same error if you remove the both the double and single quotes around the password? The OLEDB string doesn't appear to be formatted correctly. I'm assuming the one that works doesn't wrap the unencrypted password in quotes?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 00:09:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/356187#M64241</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-05T00:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Pwencode in oledb libname</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/545848#M74328</link>
      <description>Of course every little bit helps! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; (;</description>
      <pubDate>Mon, 25 Mar 2019 14:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Pwencode-in-oledb-libname/m-p/545848#M74328</guid>
      <dc:creator>ccaulkins9</dc:creator>
      <dc:date>2019-03-25T14:36:50Z</dc:date>
    </item>
  </channel>
</rss>

