<?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: sas002 encoding and usage in SMC in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas002-encoding-and-usage-in-SMC/m-p/39828#M8067</link>
    <description>have you tried it without that %STR()&lt;BR /&gt;
?</description>
    <pubDate>Tue, 29 Mar 2011 18:38:56 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2011-03-29T18:38:56Z</dc:date>
    <item>
      <title>sas002 encoding and usage in SMC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas002-encoding-and-usage-in-SMC/m-p/39827#M8066</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I've got another one - maybe you can (as always) help.&lt;BR /&gt;
&lt;BR /&gt;
Environment is SAS 9.2 / The current setup worked for 9.1.&lt;BR /&gt;
&lt;BR /&gt;
I have encoded a DB2 password with sas002 (proc pwencode) and I store it in the autoexec file that is used upon job execution.&lt;BR /&gt;
&lt;BR /&gt;
It looks like this:&lt;BR /&gt;
%Let DBuser= %str(Username);&lt;BR /&gt;
%Let DBpassw = %str({sas002}AString);&lt;BR /&gt;
&lt;BR /&gt;
In the Management Console the DB user setup references &amp;amp;DBuser and &amp;amp;DBpassw but what happens in the generated Table Loader code is, that the &amp;amp;DBuser variable is resolved to the correct username but the password is transformed to&lt;BR /&gt;
&lt;BR /&gt;
password="{sas002}AnotherString"&lt;BR /&gt;
&lt;BR /&gt;
I found out that AnotherString is the sas002 encoded name(!) of the variable &amp;amp;DBpassw (exactly as entered in the Management Console), so it does not get resolved like the user variable. How is this to be entered correctly into the Management Console?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!&lt;BR /&gt;
Thomas

Message was edited by: ThomasH</description>
      <pubDate>Tue, 29 Mar 2011 06:52:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas002-encoding-and-usage-in-SMC/m-p/39827#M8066</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2011-03-29T06:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: sas002 encoding and usage in SMC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas002-encoding-and-usage-in-SMC/m-p/39828#M8067</link>
      <description>have you tried it without that %STR()&lt;BR /&gt;
?</description>
      <pubDate>Tue, 29 Mar 2011 18:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas002-encoding-and-usage-in-SMC/m-p/39828#M8067</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-03-29T18:38:56Z</dc:date>
    </item>
  </channel>
</rss>

