<?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: BUG ALERT! For Hash and MBL users in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/BUG-ALERT-For-Hash-and-MBL-users/m-p/730715#M227565</link>
    <description>&lt;P&gt;I can only state this for MBL &lt;EM&gt;and&lt;/EM&gt; encrypted. All our permanent libraries are MBL and encrypted because our server farm is outsourced (external people have superuser access, so we need to protect our data). It may be that it is the encryption, but it may also be that the MBL alone is the deciding factor in this.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 14:21:26 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-04-01T14:21:26Z</dc:date>
    <item>
      <title>BUG ALERT! For Hash and MBL users</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BUG-ALERT-For-Hash-and-MBL-users/m-p/730648#M227545</link>
      <description>&lt;P&gt;When using the OUTPUT() method to write a dataset to a metadata-bound and encrypted library, the dataset ends up with zero observations and zero variables. Using the identical code to write to a "normal" library (e.g. WORK) produces the expected dataset with observations and variables as stored in the hash object.&lt;/P&gt;
&lt;P&gt;There is a peculiar difference in the log:&lt;/P&gt;
&lt;P&gt;Successful:&lt;/P&gt;
&lt;PRE&gt;28         data _null_;
29         set sashelp.class end=done;
30         if _n_ = 1 then do;
31           declare hash c ();
32           c.definekey("name");
33           c.definedata("name","sex");
34           c.definedone();
35         end;
36         rc = c.add();
37         if done then rc = c.output(dataset:"class");
38         run;
 
NOTE: The data set WORK.CLASS has 19 observations and 2 variables.
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
      real time           0.01 seconds
      cpu time            0.00 seconds
 &lt;/PRE&gt;
&lt;P&gt;Not successful, with MBL:&lt;/P&gt;
&lt;PRE&gt;28         data _null_;
29         set sashelp.class end=done;
30         if _n_ = 1 then do;
31           declare hash c ();
32           c.definekey("name");
33           c.definedata("name","sex");
34           c.definedone();
35         end;
36         rc = c.add();
37         if done then rc = c.output(dataset:"xxxx.class");
38         run;
 
NOTE: Metadata-bound library permissions are used for XXXX.CLASS.DATA.
NOTE: Successfully added new secured table object with SASTableName and MemberType "CLASS.DATA" to the secured library object at
      path "/System/Secured Libraries/XXXX/XXXX" for data set XXXX.CLASS.DATA.
NOTE: This metadata-bound library requires AES encryption with its recorded key. The recorded algorithm is used.
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set XXXX.CLASS has 0 observations and 0 variables.
NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
      real time           0.03 seconds
      cpu time            0.02 seconds
&lt;/PRE&gt;
&lt;P&gt;(library name redacted).&lt;/P&gt;
&lt;P&gt;As you can see, there may be a timing issue involved, as the success reports the output dataset first, while the failure reports it last.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A track will be opened with SAS Technical Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS the issue was encountered on SAS 9.4M7 on AIX.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 11:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BUG-ALERT-For-Hash-and-MBL-users/m-p/730648#M227545</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-01T11:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: BUG ALERT! For Hash and MBL users</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BUG-ALERT-For-Hash-and-MBL-users/m-p/730686#M227555</link>
      <description>&lt;P&gt;Out of curiousity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"metadata-bound &lt;EM&gt;&lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/EM&gt; encrypted"?&amp;nbsp; &amp;nbsp;I presume that metadata-bound and unencrypted will properly honor the output method, yes?&amp;nbsp; &amp;nbsp;(I've never had to work in the metadata-enable sas environment).&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 13:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BUG-ALERT-For-Hash-and-MBL-users/m-p/730686#M227555</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-04-01T13:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: BUG ALERT! For Hash and MBL users</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BUG-ALERT-For-Hash-and-MBL-users/m-p/730715#M227565</link>
      <description>&lt;P&gt;I can only state this for MBL &lt;EM&gt;and&lt;/EM&gt; encrypted. All our permanent libraries are MBL and encrypted because our server farm is outsourced (external people have superuser access, so we need to protect our data). It may be that it is the encryption, but it may also be that the MBL alone is the deciding factor in this.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BUG-ALERT-For-Hash-and-MBL-users/m-p/730715#M227565</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-04-01T14:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: BUG ALERT! For Hash and MBL users</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BUG-ALERT-For-Hash-and-MBL-users/m-p/730891#M227653</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; - I note you are testing with a SASHELP dataset which I assume is a non-MBL. Just out of curiosity do you get the same behaviour both reading from and writing to an MBL?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 00:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BUG-ALERT-For-Hash-and-MBL-users/m-p/730891#M227653</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-04-02T00:29:17Z</dc:date>
    </item>
  </channel>
</rss>

