<?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 Using serverpass= in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/731961#M228065</link>
    <description>&lt;P&gt;From our Linux server, we are using SAS PC File Server and pass our credentials using serveruser= and serverpass= options when executing PROC IMPORT and PROC EXPORT code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We use a %INCLUDE statement to read our pw.sas program that contains the user's credentials.&amp;nbsp; This process works fine when the actual password is entered into the pw.sas program.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we are trying to do is use the encrypted password from the proc pwencode into our pw.sas program.&amp;nbsp; It seems the serverpass= option can't interpret the encrypted password?&amp;nbsp; Is this true?&amp;nbsp; Is there a way to use an encrypted password so that the password is not shown in the log files?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 15:53:22 GMT</pubDate>
    <dc:creator>Linda_V</dc:creator>
    <dc:date>2021-04-07T15:53:22Z</dc:date>
    <item>
      <title>Using serverpass=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/731961#M228065</link>
      <description>&lt;P&gt;From our Linux server, we are using SAS PC File Server and pass our credentials using serveruser= and serverpass= options when executing PROC IMPORT and PROC EXPORT code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We use a %INCLUDE statement to read our pw.sas program that contains the user's credentials.&amp;nbsp; This process works fine when the actual password is entered into the pw.sas program.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What we are trying to do is use the encrypted password from the proc pwencode into our pw.sas program.&amp;nbsp; It seems the serverpass= option can't interpret the encrypted password?&amp;nbsp; Is this true?&amp;nbsp; Is there a way to use an encrypted password so that the password is not shown in the log files?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 15:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/731961#M228065</guid>
      <dc:creator>Linda_V</dc:creator>
      <dc:date>2021-04-07T15:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using serverpass=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/731975#M228074</link>
      <description>&lt;P&gt;Hi &lt;A class="trigger-hovercard" style="color: #007dc3;" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15021" target="_blank"&gt;Linda_V&lt;/A&gt;, are you including your encrypted pw in quotes?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 16:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/731975#M228074</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2021-04-07T16:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using serverpass=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732012#M228093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The results of&amp;nbsp;proc pwencode is provided with quotes.&amp;nbsp; Example:&amp;nbsp; "{SAS004}098098DFASFDS09809DAFSDFSA"&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;At first I thought I had a set of two quotes since I had quotes in the pw.sas program AND&amp;nbsp; quotes around my macro I was using in the serverpass=.&amp;nbsp; So, I removed the quotes around the macro and left the quotes in the pw.sas program.&amp;nbsp; Neither version was successful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Original code when using plain text in pw.sas program:&lt;/P&gt;
&lt;P&gt;serverpass="&amp;amp;userPW."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code when using the proc pwencode results in pw.sas program:&lt;/P&gt;
&lt;P&gt;serverpass= &amp;amp;userPW.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 18:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732012#M228093</guid>
      <dc:creator>Linda_V</dc:creator>
      <dc:date>2021-04-07T18:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using serverpass=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732017#M228095</link>
      <description>&lt;P&gt;I am not sure how you get PROC PWENCODE to provide your pw in quotes. You can run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc pwencode in='your_actual_pw' method=SAS004;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and get your encrypted pw in the log as&lt;/P&gt;
&lt;P&gt;{SAS004}78BCBA30084F0A72B401D0DEEC630EF8967005CA77A26DB5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then assign its value (without quotes):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let userPW={SAS004}78BCBA30084F0A72B401D0DEEC630EF8967005CA77A26DB5;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then use in PROC IMPORT as serverpass="&amp;amp;userPW" .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out the following track &lt;A href="https://communities.sas.com/t5/SAS-Programming/SAS-PC-File-Formats-Error-importing-or-exporting-from-network/m-p/685704#M208004" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/SAS-PC-File-Formats-Error-importing-or-exporting-from-network/m-p/685704#M208004&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;to see if you have configuration issue.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 18:59:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732017#M228095</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2021-04-07T18:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using serverpass=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732086#M228103</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&amp;nbsp; What I have found is that &lt;STRONG&gt;method=sas002&lt;/STRONG&gt; will work, however &lt;STRONG&gt;method=sas004&lt;/STRONG&gt; does not.&lt;/P&gt;
&lt;P&gt;I had copied the encrypted pw from my sasv9.cfg file and that's where I got the quotes from.&amp;nbsp; Sorry about that detail.&lt;/P&gt;
&lt;P&gt;I will use method=sas002 in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 20:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732086#M228103</guid>
      <dc:creator>Linda_V</dc:creator>
      <dc:date>2021-04-07T20:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using serverpass=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732087#M228104</link>
      <description>&lt;P&gt;SAS documentation for &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n0dc6in0v7nfain1f2whl6f5x66p.htm&amp;amp;locale=en#n1o8w483idyvg7n1y2ni3jy8qb1m" target="_self"&gt;PROC PWENCODE&lt;/A&gt; says: The METHOD= option supports the SAS003, SAS004, and SAS005 values, but only if you have &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=secref&amp;amp;docsetTarget=n0gzdro5ac3enzn18qbmaqy4liz3.htm&amp;amp;locale=en#p0pguoi2rdzd4sn1jkzlr3redywg" target="_self"&gt;&lt;SPAN class="xisDoc-nobr"&gt;SAS/SECURE&lt;/SPAN&gt;&lt;/A&gt;.&amp;nbsp; SAS002 does not require SAS/SECURE license.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 20:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732087#M228104</guid>
      <dc:creator>LeonidBatkhan</dc:creator>
      <dc:date>2021-04-07T20:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using serverpass=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732088#M228105</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15021"&gt;@Linda_V&lt;/a&gt;&amp;nbsp; - What is your SAS maintenance level? Often the more advanced encryption methods have only been implemented in recent maintenance releases.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 20:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-serverpass/m-p/732088#M228105</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-07T20:49:19Z</dc:date>
    </item>
  </channel>
</rss>

