<?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: Why values starting with numerical values are not recognized in a data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-values-starting-with-numerical-values-are-not-recognized-in/m-p/326489#M72712</link>
    <description>&lt;P&gt;I got the answer.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jan 2017 05:53:22 GMT</pubDate>
    <dc:creator>knveraraju91</dc:creator>
    <dc:date>2017-01-21T05:53:22Z</dc:date>
    <item>
      <title>Why values starting with numerical values are not recognized in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-values-starting-with-numerical-values-are-not-recognized-in/m-p/326487#M72710</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your excellent support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a variable from data1. But I am getting the output value for last OBS only. Why. Please help. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data one;&lt;BR /&gt;set data1;&lt;BR /&gt;if trta='75 mg' then trt='A';&lt;BR /&gt;if trta='150 mg' then trt='B';&lt;BR /&gt;if trta='300 mg' then trt='C';&lt;BR /&gt;if trta='TOTAL' then trt='D';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data1;&lt;/P&gt;&lt;P&gt;ns &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;trta&lt;/P&gt;&lt;P&gt;50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100 mg&lt;/P&gt;&lt;P&gt;60 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 mg&lt;/P&gt;&lt;P&gt;70 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 125 mg&lt;/P&gt;&lt;P&gt;180 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my code:&lt;/P&gt;&lt;P&gt;data one;&lt;BR /&gt;set data1;&lt;BR /&gt;if trta='100 mg' then trt='A';&lt;BR /&gt;if trta='25 mg' then trt='B';&lt;BR /&gt;if trta='125 mg' then trt='C';&lt;BR /&gt;if trta='TOTAL' then trt='D';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ouput getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ns &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;trta &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trt&lt;/P&gt;&lt;P&gt;50 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100 mg &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;60 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 25 mg&lt;/P&gt;&lt;P&gt;70 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 125 mg&lt;/P&gt;&lt;P&gt;180 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Total &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2017 05:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-values-starting-with-numerical-values-are-not-recognized-in/m-p/326487#M72710</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2017-01-21T05:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why values starting with numerical values are not recognized in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-values-starting-with-numerical-values-are-not-recognized-in/m-p/326489#M72712</link>
      <description>&lt;P&gt;I got the answer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2017 05:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-values-starting-with-numerical-values-are-not-recognized-in/m-p/326489#M72712</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2017-01-21T05:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why values starting with numerical values are not recognized in a data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-values-starting-with-numerical-values-are-not-recognized-in/m-p/326490#M72713</link>
      <description>&lt;P&gt;Then pleas post the answer and mark the question solved.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2017 06:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-values-starting-with-numerical-values-are-not-recognized-in/m-p/326490#M72713</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-21T06:18:55Z</dc:date>
    </item>
  </channel>
</rss>

