<?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 Cert Prep Guide 9.4 quiz question Ch4 quiz Q3 in SAS Certification</title>
    <link>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/754972#M1162</link>
    <description>&lt;P&gt;i was also had that doubt on wrong option in SAS Prep guid 9.4 has wrong option instead of 'B' they have in the book 'A' which is wrong the right answer is option 'B'.&lt;BR /&gt;&lt;BR /&gt;b)&lt;BR /&gt;options obs=7;&lt;BR /&gt;proc import datafile="c:\users\test.txt"&lt;BR /&gt;out=exam&lt;BR /&gt;dbms=dlm&lt;BR /&gt;replace;&lt;BR /&gt;&lt;STRONG&gt;delimiter='.';&lt;/STRONG&gt;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=exam;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2021 12:36:23 GMT</pubDate>
    <dc:creator>ganeshmule</dc:creator>
    <dc:date>2021-07-19T12:36:23Z</dc:date>
    <item>
      <title>SAS Cert Prep Guide 9.4 quiz question Ch4 quiz Q3</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/569296#M577</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Which one is the correct answer? Chapter 4 quiz, question 3, the answer key shows the correct answer is a. However, the explanation seems more like choice b. Below are the answer and question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Correct answer: a&lt;BR /&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 name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the question:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a.&lt;BR /&gt;options obs=7;&lt;BR /&gt;proc import data="C:\users\test.txt" out=exam dbms=dlm replace;&lt;BR /&gt;getnames=yes; run;&lt;BR /&gt;proc print data=exam; run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;b. options obs=7;&lt;BR /&gt;proc import datafile="c:\users\test.txt" out=exam dbms=dlm replace;&lt;BR /&gt;delimiter='.'; getnames=yes;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=exam; run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c.&lt;BR /&gt;proc import datafile="c:\users\test.txt"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;out=exam dbms=dlm replace;&lt;BR /&gt;delimiter=' '; getnames=no;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=exam (obs=7); run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;d.&lt;BR /&gt;proc import datafile="c:\users\test.txt" out=exam dbms=csv replace;&lt;BR /&gt;delimiter=','; getnames=no;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=exam; options obs=7;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 21:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/569296#M577</guid>
      <dc:creator>Teeleaf</dc:creator>
      <dc:date>2019-06-26T21:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Cert Prep Guide 9.4 quiz question Ch4 quiz Q3</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/569301#M578</link>
      <description>You are correct, but this already noted in the updated errata's here:&lt;BR /&gt;&lt;A href="https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf" target="_blank"&gt;https://support.sas.com/content/dam/SAS/support/en/books/errata-base-certified.pdf&lt;/A&gt;</description>
      <pubDate>Wed, 26 Jun 2019 22:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/569301#M578</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-26T22:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Cert Prep Guide 9.4 quiz question Ch4 quiz Q3</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/569306#M579</link>
      <description>&lt;P&gt;Thanks very much Reeza for the confirmation and updates!!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 23:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/569306#M579</guid>
      <dc:creator>Teeleaf</dc:creator>
      <dc:date>2019-06-26T23:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Cert Prep Guide 9.4 quiz question Ch4 quiz Q3</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/754972#M1162</link>
      <description>&lt;P&gt;i was also had that doubt on wrong option in SAS Prep guid 9.4 has wrong option instead of 'B' they have in the book 'A' which is wrong the right answer is option 'B'.&lt;BR /&gt;&lt;BR /&gt;b)&lt;BR /&gt;options obs=7;&lt;BR /&gt;proc import datafile="c:\users\test.txt"&lt;BR /&gt;out=exam&lt;BR /&gt;dbms=dlm&lt;BR /&gt;replace;&lt;BR /&gt;&lt;STRONG&gt;delimiter='.';&lt;/STRONG&gt;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=exam;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 12:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/754972#M1162</guid>
      <dc:creator>ganeshmule</dc:creator>
      <dc:date>2021-07-19T12:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Cert Prep Guide 9.4 quiz question Ch4 quiz Q3</title>
      <link>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/755711#M1163</link>
      <description>As mentioned previously, this is noted in the errata document. In the 'print era' books cannot be updated after they're published so instead they published a separate document indicating any changes. This document already contains this information.</description>
      <pubDate>Wed, 21 Jul 2021 17:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Certification/SAS-Cert-Prep-Guide-9-4-quiz-question-Ch4-quiz-Q3/m-p/755711#M1163</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-07-21T17:28:59Z</dc:date>
    </item>
  </channel>
</rss>

