<?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: Practice exam question re Infile and Input in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886861#M39346</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38931"&gt;@Mark2010&lt;/a&gt;&amp;nbsp;.&amp;nbsp; Points well-taken. I've switched over to official SAS guides to lessen future unnecessary confusion!&amp;nbsp; I've also been updating the course instructors with this type of information, and they have so far appreciated the feedback.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 17:24:51 GMT</pubDate>
    <dc:creator>TheresaM</dc:creator>
    <dc:date>2023-07-28T17:24:51Z</dc:date>
    <item>
      <title>Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886132#M39302</link>
      <description>&lt;P&gt;I'm taking a practice exam for Base Programming Performance-Based Certification Exam for SAS 9.4 and am stuck on what I know is a simple question.&lt;/P&gt;&lt;P&gt;For the following question, I thought the obvious answer was 1 numeric variable (answer B). But the answer key says 0 (answer A). Why is that? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;The following SAS program is submitted:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data employees;
   infile 'file-specification';
   input @1 name $10.
         @15 date date9.
         @25 department $;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class=""&gt;How many numeric variables are created:&lt;/P&gt;&lt;P class=""&gt;A. 0&lt;/P&gt;&lt;P class=""&gt;B. 1&lt;/P&gt;&lt;P class=""&gt;C. 2&lt;/P&gt;&lt;P class=""&gt;D. 3&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 18:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886132#M39302</guid>
      <dc:creator>TheresaM</dc:creator>
      <dc:date>2023-07-24T18:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886133#M39303</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446221"&gt;@TheresaM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm taking a practice exam for Base Programming Performance-Based Certification Exam for SAS 9.4 and am stuck on what I know is a simple question.&lt;/P&gt;
&lt;P&gt;For the following question, I thought the obvious answer was 1 numeric variable (answer B). But the answer key says 0 (answer A). Why is that? Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;The following SAS program is submitted:&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;data employees;
   infile 'file-specification';
   input @1 name $10.
         @15 date date9.
         @25 department $;
Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class=""&gt;How many numeric variables are created:&lt;/P&gt;
&lt;P class=""&gt;A. 0&lt;/P&gt;
&lt;P class=""&gt;B. 1&lt;/P&gt;
&lt;P class=""&gt;C. 2&lt;/P&gt;
&lt;P class=""&gt;D. 3&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You are right.&amp;nbsp; Either the answer key is wrong or there is something different about the actual question or the actual code from what you posted.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 18:43:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886133#M39303</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-24T18:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886135#M39304</link>
      <description>Date9 is numeric, so 1 is correct.</description>
      <pubDate>Mon, 24 Jul 2023 19:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886135#M39304</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-07-24T19:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886137#M39305</link>
      <description>&lt;P&gt;Sorry everyone! I just conferred with a fellow student and he reminded me that the . after the character $10 length declaration is a syntax error, and so no variable gets created.&amp;nbsp; But thank you to those who offered help!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 19:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886137#M39305</guid>
      <dc:creator>TheresaM</dc:creator>
      <dc:date>2023-07-24T19:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886142#M39307</link>
      <description>&lt;P&gt;It's best to test, which does not align with your classmates statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Reeza_0-1690227872758.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86059iBDB1B295793B01C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Reeza_0-1690227872758.png" alt="Reeza_0-1690227872758.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you can also run a PROC CONTENTS on the sample data to see the variable types.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the exact wording of the question may also matter.&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/446221"&gt;@TheresaM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry everyone! I just conferred with a fellow student and he reminded me that the . after the character $10 length declaration is a syntax error, and so no variable gets created.&amp;nbsp; But thank you to those who offered help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 19:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886142#M39307</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-07-24T19:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886146#M39308</link>
      <description>&lt;P&gt;Thank you, Reeza. I ran a test as you recommended and found the same, of course.&lt;/P&gt;&lt;P&gt;I triple-checked that I typed the question exactly how it is in the exam, but below is a screenshot of the question and the answer key. I think that, based on our test code, and the two other people's responses, the practice exam seems to be incorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-07-24 at 2.32.48 PM.png" style="width: 590px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86060i958A7BAE32D5B0DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-07-24 at 2.32.48 PM.png" alt="Screen Shot 2023-07-24 at 2.32.48 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2023-07-24 at 3.21.32 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86061i8465972A223E10FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2023-07-24 at 3.21.32 PM.png" alt="Screen Shot 2023-07-24 at 3.21.32 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 19:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886146#M39308</guid>
      <dc:creator>TheresaM</dc:creator>
      <dc:date>2023-07-24T19:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886150#M39309</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446221"&gt;@TheresaM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry everyone! I just conferred with a fellow student and he reminded me that the . after the character $10 length declaration is a syntax error, and so no variable gets created.&amp;nbsp; But thank you to those who offered help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since there is no LENGTH statement shown I am not sure why this is brought up.&lt;/P&gt;
&lt;P&gt;Plus it is not a syntax error as shown here:&lt;/P&gt;
&lt;PRE&gt;16   data junk;
17      length x $10.;
18      x='abcdefghijk';
19   run;

NOTE: The data set WORK.JUNK has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
&lt;/PRE&gt;
&lt;P&gt;The value of X will be truncated to 10 characters because of the length statement. In fact SAS won't even care if you include a decimal value (ignored)&lt;/P&gt;
&lt;PRE&gt;41   data junk;
42      length x $10.5;
43      x='abcdefghijk';
44   run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 20:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886150#M39309</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-24T20:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886157#M39311</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446221"&gt;@TheresaM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry everyone! I just conferred with a fellow student and he reminded me that the . after the character $10 length declaration is a syntax error, and so no variable gets created.&amp;nbsp; But thank you to those who offered help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That has nothing to do with your original question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS is in general very forgiving of some mistakes.&amp;nbsp; The length of a variable is always an integer (since it is a count of the number of bytes to use) so there is no need to include a decimal point in a LENGTH statement.&amp;nbsp; But that will not cause any error or even any note or warning.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 20:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886157#M39311</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-24T20:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886159#M39312</link>
      <description>&lt;P&gt;Where did you get the practice exam?&amp;nbsp; Did you pay money for it?&amp;nbsp; Can you get your money back?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 20:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886159#M39312</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-24T20:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886171#M39314</link>
      <description>&lt;P&gt;The practice exam was given as an "extra resource" from a course I took. I suppose the unspoken caveat is that the practice exams were given to us as-is. The course was a good one, but it's possible these practice exams are not as good as the vetted ones from certified sources.&amp;nbsp; I'm switching over to the official SAS practice exam now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 21:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886171#M39314</guid>
      <dc:creator>TheresaM</dc:creator>
      <dc:date>2023-07-24T21:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886172#M39315</link>
      <description>&lt;P&gt;Thank you -- every piece of information has been helpful. I did look for the answer online, but was confusing informat delimiters with length statements. I've emailed our course instructor to see what they say regarding the question/answer key from the practice exam they gave to us.&amp;nbsp; I'm understanding that SAS is forgiving, and may ignore things that are unnecessary and still execute the code.&amp;nbsp; Of course I am also interested in what the official answer would be that the Certification Exam would consider correct.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 21:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886172#M39315</guid>
      <dc:creator>TheresaM</dc:creator>
      <dc:date>2023-07-24T21:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886847#M39344</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446221"&gt;@TheresaM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you will need to carefully reconsider the course that you have taken, and this practice exam. I see where you said you are going to switch to the &lt;A title="SAS Certification Practice Exam: SAS 9.4 Base Programming Performance-Based Exam" href="https://support.sas.com/edu/viewmyelearn.html?activationCode=FAEBASEPE%20" target="_blank" rel="noopener"&gt;SAS official practice exam&lt;/A&gt; for the A00-231 exam, so that is good news. Not only is the question not provided with the accurate correct answer, but it is also covering a topic (reading raw data with infile/input) that has not been part of an exam since before 2019. So if the course focused on this as topic area, I would question the entire course as relevant to the current exam. Please refer to the SAS Certification Website for the &lt;A title="SAS Certified Specialist: Base Programming Using SAS 9.4." href="https://www.sas.com/en_us/certification/credentials/foundation-tools/base-programming-specialist.html" target="_blank" rel="noopener"&gt;Base Programming Specialist&lt;/A&gt; for the exam content guide as well as other important preparation resources.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886847#M39344</guid>
      <dc:creator>Mark2010</dc:creator>
      <dc:date>2023-07-28T17:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886861#M39346</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38931"&gt;@Mark2010&lt;/a&gt;&amp;nbsp;.&amp;nbsp; Points well-taken. I've switched over to official SAS guides to lessen future unnecessary confusion!&amp;nbsp; I've also been updating the course instructors with this type of information, and they have so far appreciated the feedback.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886861#M39346</guid>
      <dc:creator>TheresaM</dc:creator>
      <dc:date>2023-07-28T17:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Practice exam question re Infile and Input</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886867#M39347</link>
      <description>&lt;P&gt;Also, yes, I've GREATLY appreciated provided in the&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Tips-and-strategies-for-the-A00-231-SAS-Base-Programming/ta-p/582838" target="_self"&gt;preparation resources&lt;/A&gt;&amp;nbsp;page you posted. I should have revisited the exam content guide before tearing my hair out over questions that address topics no longer covered in the exam.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 17:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Practice-exam-question-re-Infile-and-Input/m-p/886867#M39347</guid>
      <dc:creator>TheresaM</dc:creator>
      <dc:date>2023-07-28T17:31:36Z</dc:date>
    </item>
  </channel>
</rss>

