<?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 read SAS data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/read-SAS-data/m-p/399427#M96740</link>
    <description>&lt;P&gt;Given the SAS data set SASDATA TWO:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SASDATA TWO&lt;BR /&gt;XY&lt;BR /&gt;----&lt;BR /&gt;52&lt;BR /&gt;31&lt;BR /&gt;56&lt;BR /&gt;The following SAS program is submitted:&lt;BR /&gt;data sasuser.one two sasdata.three;&lt;BR /&gt;set sasdata two;&lt;BR /&gt;if x = 5 then output sasuser.one;&lt;BR /&gt;else output sasdata two;&lt;BR /&gt;run;&lt;BR /&gt;What is the result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure why the answer is&amp;nbsp;&lt;/P&gt;&lt;P&gt;A. data set SASUSER.ONE has 5 observations&lt;BR /&gt;data set SASUSER.TWO has 5 observations&lt;BR /&gt;data set WORK.OTHER has 3 observations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 08:06:10 GMT</pubDate>
    <dc:creator>pchen002</dc:creator>
    <dc:date>2017-09-28T08:06:10Z</dc:date>
    <item>
      <title>read SAS data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-SAS-data/m-p/399427#M96740</link>
      <description>&lt;P&gt;Given the SAS data set SASDATA TWO:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SASDATA TWO&lt;BR /&gt;XY&lt;BR /&gt;----&lt;BR /&gt;52&lt;BR /&gt;31&lt;BR /&gt;56&lt;BR /&gt;The following SAS program is submitted:&lt;BR /&gt;data sasuser.one two sasdata.three;&lt;BR /&gt;set sasdata two;&lt;BR /&gt;if x = 5 then output sasuser.one;&lt;BR /&gt;else output sasdata two;&lt;BR /&gt;run;&lt;BR /&gt;What is the result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure why the answer is&amp;nbsp;&lt;/P&gt;&lt;P&gt;A. data set SASUSER.ONE has 5 observations&lt;BR /&gt;data set SASUSER.TWO has 5 observations&lt;BR /&gt;data set WORK.OTHER has 3 observations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 08:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-SAS-data/m-p/399427#M96740</guid>
      <dc:creator>pchen002</dc:creator>
      <dc:date>2017-09-28T08:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: read SAS data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-SAS-data/m-p/399428#M96741</link>
      <description>&lt;P&gt;Your question is not coherent. There is no dataset "other" mentioned in the datastep at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;STRONG HINT:&lt;/P&gt;
&lt;P&gt;run examples yourself to make sure that you present working code here, this is more or less a bad joke.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 08:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-SAS-data/m-p/399428#M96741</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-09-28T08:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: read SAS data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/read-SAS-data/m-p/399504#M96770</link>
      <description>&lt;P&gt;AS written this line:&lt;/P&gt;
&lt;P&gt;set sasdata two;&lt;/P&gt;
&lt;P&gt;indicates that you are combining two different data sets Sasdata AND two, which by default would both be in the WORK library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code does not actually show a reference to SASUSER.TWO or Other.&lt;/P&gt;
&lt;P&gt;The periods in the data set names are crucial to accurate code as the &lt;FONT size="5"&gt;.&lt;FONT size="3"&gt; &lt;FONT size="2"&gt;separates the library name, the bit before the . which is a storage location and the actual dataset name, the bit after the period. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 14:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/read-SAS-data/m-p/399504#M96770</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-28T14:42:02Z</dc:date>
    </item>
  </channel>
</rss>

