<?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: SAS Programming 1: Essentials, Lesson 2 accessing data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Lesson-2-accessing-data/m-p/614876#M18672</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 22:12:19 GMT</pubDate>
    <dc:creator>AJS1</dc:creator>
    <dc:date>2020-01-02T22:12:19Z</dc:date>
    <item>
      <title>SAS Programming 1: Essentials, Lesson 2 accessing data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Lesson-2-accessing-data/m-p/614873#M18669</link>
      <description>&lt;P&gt;I am confused to why I got this quiz question incorrect (I chose "a" but the correct answer is "b"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;9. What does this code do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc import datafile="d:/collect817/bird_count.csv"
            dbms=csv out=bird817 replace;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;EM&gt;a.&lt;/EM&gt;&amp;nbsp;&amp;nbsp;It creates a SAS data set named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird817&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;work&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;library from the CSV file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird_count&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and replaces&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird817&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;whenever the CSV file is updated.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;EM&gt;b.&lt;/EM&gt;&amp;nbsp;&amp;nbsp;It creates a SAS data set named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird817&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;work&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;library from the CSV file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird_count&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;EM&gt;c.&lt;/EM&gt;&amp;nbsp; It uses the CSV engine to directly read the data file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird_count.csv&lt;/STRONG&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 02 Jan 2020 22:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Lesson-2-accessing-data/m-p/614873#M18669</guid>
      <dc:creator>AJS1</dc:creator>
      <dc:date>2020-01-02T22:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming 1: Essentials, Lesson 2 accessing data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Lesson-2-accessing-data/m-p/614874#M18670</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304846"&gt;@AJS1&lt;/a&gt;&amp;nbsp; The tricky part is&lt;EM&gt; "whenever the CSV file &lt;STRONG&gt;is updated."&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc import doesn't have the artificial intelligence to know when a CSV file is updated however when and everytime it is executed, it creates a file as named. So B is straight to the point.&lt;EM&gt;&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus the &lt;EM&gt;replace&lt;/EM&gt; is merely overwrite feature.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 22:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Lesson-2-accessing-data/m-p/614874#M18670</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-02T22:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming 1: Essentials, Lesson 2 accessing data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Lesson-2-accessing-data/m-p/614875#M18671</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304846"&gt;@AJS1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am confused to why I got this quiz question incorrect (I chose "a" but the correct answer is "b"):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;9. What does this code do?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc import datafile="d:/collect817/bird_count.csv"
            dbms=csv out=bird817 replace;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;EM&gt;a.&lt;/EM&gt;&amp;nbsp;&amp;nbsp;It creates a SAS data set named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird817&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;work&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;library from the CSV file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird_count&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and replaces&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird817&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;whenever the CSV file is updated.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;EM&gt;b.&lt;/EM&gt;&amp;nbsp;&amp;nbsp;It creates a SAS data set named&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird817&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;work&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;library from the CSV file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird_count&lt;/STRONG&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;EM&gt;c.&lt;/EM&gt;&amp;nbsp; It uses the CSV engine to directly read the data file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bird_count.csv&lt;/STRONG&gt;.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The key different in this case is the clause "whenever the CSV file is updated.". Since the Proc Import would need to be rerun when the CSV file is updated then that makes A incorrect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 22:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Lesson-2-accessing-data/m-p/614875#M18671</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-01-02T22:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programming 1: Essentials, Lesson 2 accessing data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Lesson-2-accessing-data/m-p/614876#M18672</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 22:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Programming-1-Essentials-Lesson-2-accessing-data/m-p/614876#M18672</guid>
      <dc:creator>AJS1</dc:creator>
      <dc:date>2020-01-02T22:12:19Z</dc:date>
    </item>
  </channel>
</rss>

