<?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 To read numeric values of a variable in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/To-read-numeric-values-of-a-variable/m-p/6245#M608</link>
    <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I have a variable whose values are both numeric and charaacters.e.g., 14.2 MG/DL, 19.2 %, no result 12.13 mmol/l, etc... its a mixed of different units r values. My question is 'Is it possible to read only the numeric portion of these values ie. 14.2, 19.2 (if it is text mark as .) 12.13, etc....Will this work with substring &amp;amp; scan function.&lt;BR /&gt;
&lt;BR /&gt;
It would b helpful if I can have the solution ASAP.&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
Priya</description>
    <pubDate>Wed, 09 Jan 2008 16:35:28 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-01-09T16:35:28Z</dc:date>
    <item>
      <title>To read numeric values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/To-read-numeric-values-of-a-variable/m-p/6245#M608</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I have a variable whose values are both numeric and charaacters.e.g., 14.2 MG/DL, 19.2 %, no result 12.13 mmol/l, etc... its a mixed of different units r values. My question is 'Is it possible to read only the numeric portion of these values ie. 14.2, 19.2 (if it is text mark as .) 12.13, etc....Will this work with substring &amp;amp; scan function.&lt;BR /&gt;
&lt;BR /&gt;
It would b helpful if I can have the solution ASAP.&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
Priya</description>
      <pubDate>Wed, 09 Jan 2008 16:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/To-read-numeric-values-of-a-variable/m-p/6245#M608</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-09T16:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: To read numeric values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/To-read-numeric-values-of-a-variable/m-p/6246#M609</link>
      <description>I start with scan and see how far that gets you.  You could even add a scan for the second 'word' if you want to capture the units of measure.&lt;BR /&gt;
&lt;BR /&gt;
For example:&lt;BR /&gt;
data work.values;&lt;BR /&gt;
	input valstr $16.;&lt;BR /&gt;
cards;&lt;BR /&gt;
14.2 MG/DL&lt;BR /&gt;
19.2 %&lt;BR /&gt;
no result&lt;BR /&gt;
12.13 mmol/l&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data work.values;&lt;BR /&gt;
	set work.values;&lt;BR /&gt;
	length valnum 8.;&lt;BR /&gt;
	valnum = scan(valstr, 1, " ");&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 10 Jan 2008 19:11:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/To-read-numeric-values-of-a-variable/m-p/6246#M609</guid>
      <dc:creator>1162</dc:creator>
      <dc:date>2008-01-10T19:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: To read numeric values of a variable</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/To-read-numeric-values-of-a-variable/m-p/6247#M610</link>
      <description>hai,&lt;BR /&gt;
&lt;BR /&gt;
i have seen once u posted that u have SAS certicifation question bank.Can u forward to me. I am planning to take Base SAS certification exam in next month.&lt;BR /&gt;
&lt;BR /&gt;
Thanqs in advance.</description>
      <pubDate>Fri, 18 Jan 2008 05:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/To-read-numeric-values-of-a-variable/m-p/6247#M610</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-18T05:52:56Z</dc:date>
    </item>
  </channel>
</rss>

