<?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® Certified Specialist Prep Guide: Base Programming Using SAS® 9.4 - Quiz Chapter 4 question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Using-SAS-9/m-p/629175#M186029</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/219159"&gt;@monicaco&lt;/a&gt;,&amp;nbsp;thank you for your question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are correct it is Option B.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have documented this in our &lt;A href="https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf" target="_self"&gt;Content Updates&lt;/A&gt; page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Samantha&lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2020 16:28:26 GMT</pubDate>
    <dc:creator>sabisw</dc:creator>
    <dc:date>2020-03-03T16:28:26Z</dc:date>
    <item>
      <title>SAS® Certified Specialist Prep Guide: Base Programming Using SAS® 9.4 - Quiz Chapter 4 question 3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Using-SAS-9/m-p/629155#M186022</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about quiz chapter 4 - question 3:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;3. Which program correctly imports only the first seven lines from the external file that is delimited by a period (.) ? Hint: the first line in the external file contains variable names that you want to read in.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Book answer:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;3. Correct answer: a &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Use the OBS= option in the OPTIONS statement before the IMPORT procedure to limit the number of observations that SAS reads from the external file. When you use the OBS= option in the PROC PRINT statement, the whole file is imported but printing is limited to the number of observations specified. Use DELIMITER='.' to indicate that the delimiter is a period (.) and use GETNAMES=YES to read in the first line, which contains the variable names.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Code a.:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;options obs=7; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;proc import data="C:\users\test.txt"&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; out=exam&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; dbms=dlm&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; replace;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; getnames=yes; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;run; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;proc print data=exam; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;run; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;However, I think correct answer is code option "B" with the book answer explanation&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Code b:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;options obs=7; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;proc import datafile="c:\users\test.txt"&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; out=exam&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; dbms=dlm&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; replace;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; delimiter='.';&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&amp;nbsp; getnames=yes; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;run; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;proc print data=exam; run; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone clarify me this point?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Thanks&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 15:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Using-SAS-9/m-p/629155#M186022</guid>
      <dc:creator>monicaco</dc:creator>
      <dc:date>2020-03-03T15:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS® Certified Specialist Prep Guide: Base Programming Using SAS® 9.4 - Quiz Chapter 4 question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Using-SAS-9/m-p/629175#M186029</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/219159"&gt;@monicaco&lt;/a&gt;,&amp;nbsp;thank you for your question.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are correct it is Option B.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have documented this in our &lt;A href="https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf" target="_self"&gt;Content Updates&lt;/A&gt; page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Samantha&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Certified-Specialist-Prep-Guide-Base-Programming-Using-SAS-9/m-p/629175#M186029</guid>
      <dc:creator>sabisw</dc:creator>
      <dc:date>2020-03-03T16:28:26Z</dc:date>
    </item>
  </channel>
</rss>

