<?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: Encoded password in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Encoded-password/m-p/7978#M189</link>
    <description>Juan -&lt;BR /&gt;
In the same way you had to quote the password in the pwencode submission:&lt;BR /&gt;
proc pwencode in="prueba"...&lt;BR /&gt;
You must also quote the password when used.  &lt;BR /&gt;
&lt;BR /&gt;
This works for 9.2 and later versions.  It was not in place for 9.1 (or anything&lt;BR /&gt;
pre-9.2).&lt;BR /&gt;
&lt;BR /&gt;
Doing this:&lt;BR /&gt;
proc print data=sasuser.passtab(password="{sas001}cHJ1ZWJh"); run;&lt;BR /&gt;
&lt;BR /&gt;
will work at 9.2.&lt;BR /&gt;
best wishes,&lt;BR /&gt;
Nancy</description>
    <pubDate>Tue, 27 Oct 2009 16:30:54 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-10-27T16:30:54Z</dc:date>
    <item>
      <title>Encoded password</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoded-password/m-p/7977#M188</link>
      <description>Hi everyone.&lt;BR /&gt;
&lt;BR /&gt;
I have a table protected with a password. Created with this sentence:&lt;BR /&gt;
&lt;BR /&gt;
data sasuser.passtab (password=prueba);&lt;BR /&gt;
	format  MACHINE PORT USER PWD $15.;&lt;BR /&gt;
	    MACHINE='arriero'; PORT='8561'; USER='sasadm'; PWD='sasdesa'; output; run;&lt;BR /&gt;
&lt;BR /&gt;
I need to access this table with the password encrypted. Then I encrypted this password with the next sentence:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc pwencode in=prueba out=pwfile;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
And that returns me the value: {sas001}cHJ1ZWJh&lt;BR /&gt;
&lt;BR /&gt;
But when I try to match the table's password and the encrypted password, it doesn't work. Send to me this message:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ERROR: The value specified for the PASSWORD option is too long.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
What can I do? We need to solve this issue as soon as possible.&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your help.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Juan Bedoya&lt;BR /&gt;
Consultor SAS Colombia</description>
      <pubDate>Tue, 27 Oct 2009 14:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoded-password/m-p/7977#M188</guid>
      <dc:creator>JuanBedoya</dc:creator>
      <dc:date>2009-10-27T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Encoded password</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoded-password/m-p/7978#M189</link>
      <description>Juan -&lt;BR /&gt;
In the same way you had to quote the password in the pwencode submission:&lt;BR /&gt;
proc pwencode in="prueba"...&lt;BR /&gt;
You must also quote the password when used.  &lt;BR /&gt;
&lt;BR /&gt;
This works for 9.2 and later versions.  It was not in place for 9.1 (or anything&lt;BR /&gt;
pre-9.2).&lt;BR /&gt;
&lt;BR /&gt;
Doing this:&lt;BR /&gt;
proc print data=sasuser.passtab(password="{sas001}cHJ1ZWJh"); run;&lt;BR /&gt;
&lt;BR /&gt;
will work at 9.2.&lt;BR /&gt;
best wishes,&lt;BR /&gt;
Nancy</description>
      <pubDate>Tue, 27 Oct 2009 16:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoded-password/m-p/7978#M189</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-27T16:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Encoded password</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Encoded-password/m-p/7979#M190</link>
      <description>Make sure that the {sas001}cHJ1ZWJh is wrapped in quotes&lt;BR /&gt;
&lt;BR /&gt;
data one;&lt;BR /&gt;
  set sasuser.passtab(password='{sas001}cHJ1ZWJh');&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
D</description>
      <pubDate>Tue, 27 Oct 2009 16:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Encoded-password/m-p/7979#M190</guid>
      <dc:creator>darrylovia</dc:creator>
      <dc:date>2009-10-27T16:32:11Z</dc:date>
    </item>
  </channel>
</rss>

