<?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: type conversion error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/type-conversion-error/m-p/341393#M78129</link>
    <description>&lt;P&gt;Is it really easier to post a question here, than to paste the code into the Program Editor and run it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you posted the code correctly, the answer is "D". &amp;nbsp;There is a missing semicolon just before the RUN; statement, so you get a syntax error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's worth learning what happens if you were to add the semicolon. &amp;nbsp;Try testing it that way.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 01:59:08 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-03-16T01:59:08Z</dc:date>
    <item>
      <title>type conversion error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/type-conversion-error/m-p/341364#M78118</link>
      <description>&lt;DIV&gt;The following SAS program is submitted:&lt;/DIV&gt;&lt;DIV&gt;data work.retail;&lt;/DIV&gt;&lt;DIV&gt;cost = `20000';&lt;/DIV&gt;&lt;DIV&gt;total= .10* cost&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;What is the result?&lt;/DIV&gt;&lt;DIV&gt;A. The value of the variable TOTAL in the output data set is 2000. No messages are written to the SAS log.&lt;/DIV&gt;&lt;DIV&gt;B. The value of the variable TOTAL in the output data set is 2000. A note that conversion has taken place is&lt;/DIV&gt;&lt;DIV&gt;written to the SAS log.&lt;/DIV&gt;&lt;DIV&gt;C. The value of the variable TOTAL in the output data set is missing. An error message is written to the SAS&lt;/DIV&gt;&lt;DIV&gt;log.&lt;/DIV&gt;&lt;DIV&gt;D. The variable TOTAL in the output data set has no value. The program fails to execute due to a syntax error.&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/type-conversion-error/m-p/341364#M78118</guid>
      <dc:creator>margi123</dc:creator>
      <dc:date>2017-03-15T23:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: type conversion error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/type-conversion-error/m-p/341365#M78119</link>
      <description>&lt;P&gt;I suspect that you are going through either certification training materials or some other training. But you should at least have a specific question of&amp;nbsp; your own abou the posed question.&lt;/P&gt;
&lt;P&gt;Maybe something like: I thought the result would be X because of "some idea" but the result is Y? Why is it not Y?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "answer" will be in the data set.&lt;/P&gt;
&lt;P&gt;Run the code, examine the log&amp;nbsp;and then proc print data=work.retail; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: Posting such things into the body of the forum &lt;STRONG&gt;may&lt;/STRONG&gt; reformat code so that what is seen in&amp;nbsp;your post is not the actual code you started with. Post code into a code box opened with the {i} icon in the forum message menu bar.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/type-conversion-error/m-p/341365#M78119</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-15T23:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: type conversion error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/type-conversion-error/m-p/341368#M78122</link>
      <description>&lt;P&gt;See if anything from my response to &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/value-of-variable/m-p/341363" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/value-of-variable/m-p/341363&lt;/A&gt; looks familiar here.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 23:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/type-conversion-error/m-p/341368#M78122</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-15T23:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: type conversion error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/type-conversion-error/m-p/341393#M78129</link>
      <description>&lt;P&gt;Is it really easier to post a question here, than to paste the code into the Program Editor and run it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming you posted the code correctly, the answer is "D". &amp;nbsp;There is a missing semicolon just before the RUN; statement, so you get a syntax error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's worth learning what happens if you were to add the semicolon. &amp;nbsp;Try testing it that way.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 01:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/type-conversion-error/m-p/341393#M78129</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-16T01:59:08Z</dc:date>
    </item>
  </channel>
</rss>

