<?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: Base Certification in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/286081#M58607</link>
    <description>&lt;P&gt;Ciao Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this link &lt;A href="http://support.sas.com/certify/creds/samples/" target="_blank"&gt;http://support.sas.com/certify/creds/samples/&lt;/A&gt; , there are a few examples, I hope that they will help you preparing your exam&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2016 11:41:44 GMT</pubDate>
    <dc:creator>toconero</dc:creator>
    <dc:date>2016-07-21T11:41:44Z</dc:date>
    <item>
      <title>Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257652#M49476</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found a question in the SAS base certification that I didn't undestand:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input&amp;nbsp;@45 name $10;&lt;/P&gt;&lt;P&gt;Which input technique is used in the above statement?&lt;/P&gt;&lt;P&gt;a)column input&lt;/P&gt;&lt;P&gt;b)formatted input&lt;/P&gt;&lt;P&gt;c)list input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why the correct answer is a?&lt;/P&gt;&lt;P&gt;What does it mean insert the column pointer control&amp;nbsp;@45 and tell sas to read the tenth column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 15:59:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257652#M49476</guid>
      <dc:creator>alep92</dc:creator>
      <dc:date>2016-03-18T15:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257653#M49477</link>
      <description>&lt;P&gt;Go to column 45 and read the first ten characters, so the equivalent of reading from columns 45-54, inclusive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 16:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257653#M49477</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-18T16:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257660#M49483</link>
      <description>&lt;P&gt;I suspect that you misstyped the actual input statement.&lt;/P&gt;
&lt;P&gt;Double checkt to see if it was :&lt;/P&gt;
&lt;P&gt;input&amp;nbsp;@45 name $10&lt;STRONG&gt;.&lt;/STRONG&gt;;&amp;nbsp; &amp;lt; note the . after 10&lt;/P&gt;
&lt;P&gt;The $10. would say "read starting at column 45 using character format for 10 characters".&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 16:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257660#M49483</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-18T16:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257742#M49528</link>
      <description>&lt;P&gt;I use SAS Studio and if I run this example SAS reads only the tenth column so the value of the variable 'name' is 'n'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ex.dat1;&lt;BR /&gt;input @45 name $10;&lt;BR /&gt;datalines;&lt;BR /&gt;departement&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that SAS ignores the column pointer control&amp;nbsp;@45&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2016 08:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257742#M49528</guid>
      <dc:creator>alep92</dc:creator>
      <dc:date>2016-03-19T08:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257744#M49530</link>
      <description>&lt;P&gt;By using $10. after the name of the variable everything work but in the exercise that I have found the input statement is written as I wrote in the first post. I don't know if it is an error or it has another meaning.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2016 09:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257744#M49530</guid>
      <dc:creator>alep92</dc:creator>
      <dc:date>2016-03-19T09:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257769#M49535</link>
      <description>Hi:&lt;BR /&gt;  Where did you find the exercise? Is it in one of the classes that we offer? Is it in a quiz in the Certification Prep Guide? Is it in the Practice Exam for one of the certifications? Without knowing WHERE the question came from, it is hard to answer your question about whether it has another meaning. Perhaps you were meant to correct the INPUT statement so it would work. You did not provide the FULL text of the question, only your code snippet. Usually, with our courses or the Prep Guide or the Practice exam, the code snippet is preceded by a full question. Without seeing the full text of the question that went with your code snippet, it is impossible to comment.&lt;BR /&gt;  &lt;BR /&gt;cynthia</description>
      <pubDate>Sat, 19 Mar 2016 17:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257769#M49535</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-03-19T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257866#M49560</link>
      <description>&lt;P&gt;I have found the exercise in "SAS Certification Review: Base Programming for SAS9" at page 3-7.&lt;/P&gt;&lt;P&gt;The question that I have posted is exactly the same question question that I found in the book.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2016 20:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257866#M49560</guid>
      <dc:creator>alep92</dc:creator>
      <dc:date>2016-03-20T20:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257869#M49561</link>
      <description>Can you post an image please?</description>
      <pubDate>Sun, 20 Mar 2016 20:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257869#M49561</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-20T20:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257874#M49563</link>
      <description>&lt;P&gt;This is the slide where I found the exercise&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2016 20:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/257874#M49563</guid>
      <dc:creator>alep92</dc:creator>
      <dc:date>2016-03-20T20:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/258121#M49663</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Ah, thanks for posting that image. I understand now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; That slide is a quiz question from our class for Certification Prep Review: &lt;A href="https://support.sas.com/edu/schedules.html?ctry=us&amp;amp;id=58" target="_blank"&gt;https://support.sas.com/edu/schedules.html?ctry=us&amp;amp;id=58&lt;/A&gt;&amp;nbsp;Did you take that class or did you get the book from someone else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; When we teach that class, the instructor goes over the answers with the students.&amp;nbsp;In the certification review class, we tell students that this is an example of how a missing period (.) can entirely change the meaning of this INPUT statement.&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; IF the statement had been:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;input @45 name $10.;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;then the correct answer would have been B (FORMATTED input) and you would have been instructing SAS to start at position 45 and read 10 characters into the NAME variable.&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; However, without the period after the $10, this is still a valid INPUT statement&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New"&gt;input @45 name $10; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;the @45 is merely a distractor because, even if you send the pointer to position 45, as soon as there is not an&amp;nbsp;informat detected, then the remaining "name $10" turns into COLUMN input (Answer A) and you are instructing SAS to go to position 10 and ONLY read position 10 into the NAME variable. That is why when you try the code with test data, you will only see 1 character for NAME.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So, for example, see the comparison of COLUMN input vs FORMATTED input in the SAS log and see what a difference NOT having a period makes between reading 1 position and reading 10 positions. I made a fake data file where every character was unique, so you could trace exactly what character was being read. Here is the data file quiz_cert.txt:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quiz_Cert.txt:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;COLUMN input as coded:&lt;/P&gt;
&lt;P&gt;&lt;IMG title="example_column_input.png" alt="example_column_input.png" src="https://communities.sas.com/t5/image/serverpage/image-id/2402i536149470FD5FC03/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FORMATTED input as corrected:&lt;/P&gt;
&lt;P&gt;&lt;IMG title="example_formatted_input.png" alt="example_formatted_input.png" src="https://communities.sas.com/t5/image/serverpage/image-id/2403iD8959B8882E446DF/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the full page from the class (quiz answers are at the back of the chapter. For this quiz, the correct answer is A; but with a single period added to the $10. then the correct answer would be B.&lt;/P&gt;
&lt;P&gt;&lt;IMG title="answer_forum_cert_question.png" alt="answer_forum_cert_question.png" src="https://communities.sas.com/t5/image/serverpage/image-id/2404i832EB070E60B80C8/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 02:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/258121#M49663</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-03-22T02:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/286081#M58607</link>
      <description>&lt;P&gt;Ciao Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this link &lt;A href="http://support.sas.com/certify/creds/samples/" target="_blank"&gt;http://support.sas.com/certify/creds/samples/&lt;/A&gt; , there are a few examples, I hope that they will help you preparing your exam&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 11:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/286081#M58607</guid>
      <dc:creator>toconero</dc:creator>
      <dc:date>2016-07-21T11:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Base Certification</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/289325#M59753</link>
      <description>I bought those questions, I dont think they are gonna be the solution to your search, you gonna need to read more about writing data sets from raw data, UCLA website, UC SanDiego and JMP have free and detailed information that might be more helpful than these questions,</description>
      <pubDate>Wed, 03 Aug 2016 18:39:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Base-Certification/m-p/289325#M59753</guid>
      <dc:creator>Muwanguzi</dc:creator>
      <dc:date>2016-08-03T18:39:18Z</dc:date>
    </item>
  </channel>
</rss>

