<?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: Where is the documentation for Hash functions with DS2. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Where-is-the-documentation-for-Hash-functions-with-DS2/m-p/476330#M122568</link>
    <description>&lt;P&gt;From the document you pointed to: there is the link to&lt;/P&gt;&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=ds2ref&amp;amp;docsetTarget=p1cnwa3vwltaqgn1fnowe2jqxl8y.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=ds2ref&amp;amp;docsetTarget=p1cnwa3vwltaqgn1fnowe2jqxl8y.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your document seems to be a white paper and this link is the official documentation.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Jul 2018 22:12:37 GMT</pubDate>
    <dc:creator>harlananelson</dc:creator>
    <dc:date>2018-07-08T22:12:37Z</dc:date>
    <item>
      <title>Where is the documentation for Hash functions with DS2.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-is-the-documentation-for-Hash-functions-with-DS2/m-p/476317#M122556</link>
      <description>&lt;P&gt;Where is the documentation for hash functions for use with DS2.&amp;nbsp; I found the SAS component language link here: &lt;A href="http://documentation.sas.com/?docsetId=lecompobjref&amp;amp;docsetTarget=p03cettn9j89vtn1n8aq7k341k58.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lecompobjref&amp;amp;docsetTarget=p03cettn9j89vtn1n8aq7k341k58.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, this documentation does not work with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc ds2&lt;/PRE&gt;&lt;P&gt;I don't really understand why there would be a difference, but I have tried sample code with ds2 and it does not work.&amp;nbsp; Then I have been able to accomplish the same thing with different syntax.&amp;nbsp; So there is clearly a difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is code from the components documentation with my `proc ds2` added.&amp;nbsp; The declaration has to change when using DS2. DS2 used the `init()` method instead of `if _n_ = 1`.&amp;nbsp; I have not been able to parameterize the `output` to accomplish a similar task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;data table;
  input key data $;
  datalines;
  531 yellow
  620 green
  531 blue
  908 orange
  620 brown
  143 purple
 run;&lt;BR /&gt;&lt;BR /&gt;proc ds2;&lt;BR /&gt;
data _null_;
length key 8 data $ 8;
if (_n_ = 1) then do;
    declare hash myhash;
    myhash = _new_ hash (dataset: "table", duplicate: "r");
    rc = myhash.definekey('key');
    rc = myhash.definedata('data');
    myhash.definedone();
 end;
rc = myhash.output(dataset:"otable");&lt;BR /&gt;&lt;BR /&gt;enddata;
run;&lt;BR /&gt;quit;&lt;/PRE&gt;&lt;P&gt;It certainly would be interesting to see how to do this in DS2, but more importantly, I would like a link to the proper documentation, and possibly and explanation of why there are two separate syntaxes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 20:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-is-the-documentation-for-Hash-functions-with-DS2/m-p/476317#M122556</guid>
      <dc:creator>harlananelson</dc:creator>
      <dc:date>2018-07-08T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the documentation for Hash functions with DS2.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-is-the-documentation-for-Hash-functions-with-DS2/m-p/476322#M122561</link>
      <description>&lt;P&gt;In DS2 hashes are implemented as predefined packages. You'll find the documentation on page 119 of this document&amp;nbsp;&lt;A href="http://documentation.sas.com/api/docsets/ds2pg/9.4/content/ds2pg.pdf?locale=en" target="_blank"&gt;http://documentation.sas.com/api/docsets/ds2pg/9.4/content/ds2pg.pdf?locale=en&lt;/A&gt; and the hash iterator package is documented on page 131&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 21:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-is-the-documentation-for-Hash-functions-with-DS2/m-p/476322#M122561</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-07-08T21:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the documentation for Hash functions with DS2.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-is-the-documentation-for-Hash-functions-with-DS2/m-p/476330#M122568</link>
      <description>&lt;P&gt;From the document you pointed to: there is the link to&lt;/P&gt;&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=ds2ref&amp;amp;docsetTarget=p1cnwa3vwltaqgn1fnowe2jqxl8y.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=ds2ref&amp;amp;docsetTarget=p1cnwa3vwltaqgn1fnowe2jqxl8y.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Your document seems to be a white paper and this link is the official documentation.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 22:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-is-the-documentation-for-Hash-functions-with-DS2/m-p/476330#M122568</guid>
      <dc:creator>harlananelson</dc:creator>
      <dc:date>2018-07-08T22:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Where is the documentation for Hash functions with DS2.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-is-the-documentation-for-Hash-functions-with-DS2/m-p/476340#M122574</link>
      <description>&lt;P&gt;Both are versions of documentation.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32246"&gt;@ChrisBrooks&lt;/a&gt;&amp;nbsp;is the Programmers Guide (see bottom right corner of cover page where it states documentation) and the release date is pretty new - January 11, 2018.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general the programmers guide is more of a tutorial type document whereas the documentation is a bit more formal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/108321"&gt;@harlananelson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;From the document you pointed to: there is the link to&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=ds2ref&amp;amp;docsetTarget=p1cnwa3vwltaqgn1fnowe2jqxl8y.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=ds2ref&amp;amp;docsetTarget=p1cnwa3vwltaqgn1fnowe2jqxl8y.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Your document seems to be a white paper and this link is the official documentation.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 01:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-is-the-documentation-for-Hash-functions-with-DS2/m-p/476340#M122574</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-09T01:03:53Z</dc:date>
    </item>
  </channel>
</rss>

