<?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: assign a value in Programming 1 and 2</title>
    <link>https://communities.sas.com/t5/Programming-1-and-2/assign-a-value/m-p/707740#M679</link>
    <description>&lt;P&gt;Yes, because a value in quotes is considered a character value so SAS converts it to a number before it can do math on the value.&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/356091"&gt;@anming&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;data work.retail;&lt;BR /&gt;cost = (20000);&lt;BR /&gt;total = .10 * cost;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;to assign a value to cost, 20000 or (20000) both work. "20000" or '20000' also work but a log note shows that a char is changed to a numeric value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 19:28:08 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-12-22T19:28:08Z</dc:date>
    <item>
      <title>assign a value</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/assign-a-value/m-p/707737#M678</link>
      <description>&lt;PRE&gt;data work.retail;&lt;BR /&gt;cost = (20000);&lt;BR /&gt;total = .10 * cost;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;to assign a value to cost, 20000 or (20000) both work. "20000" or '20000' also work but a log note shows that a char is changed to a numeric value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 19:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/assign-a-value/m-p/707737#M678</guid>
      <dc:creator>anming</dc:creator>
      <dc:date>2020-12-22T19:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: assign a value</title>
      <link>https://communities.sas.com/t5/Programming-1-and-2/assign-a-value/m-p/707740#M679</link>
      <description>&lt;P&gt;Yes, because a value in quotes is considered a character value so SAS converts it to a number before it can do math on the value.&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/356091"&gt;@anming&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;data work.retail;&lt;BR /&gt;cost = (20000);&lt;BR /&gt;total = .10 * cost;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;to assign a value to cost, 20000 or (20000) both work. "20000" or '20000' also work but a log note shows that a char is changed to a numeric value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 19:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Programming-1-and-2/assign-a-value/m-p/707740#M679</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-22T19:28:08Z</dc:date>
    </item>
  </channel>
</rss>

