<?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 Adding decimal point to a string variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-decimal-point-to-a-string-variable/m-p/914267#M360254</link>
    <description>&lt;P&gt;I have ICD-10 codes without decimal points and I would like to add decimal points after the 3rd character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;F3342&lt;/P&gt;&lt;P&gt;F348&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I would like to have:&lt;/P&gt;&lt;P&gt;F33.42&lt;/P&gt;&lt;P&gt;F34.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help with this will be appreciated! Thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 18:33:35 GMT</pubDate>
    <dc:creator>Tithi</dc:creator>
    <dc:date>2024-02-02T18:33:35Z</dc:date>
    <item>
      <title>Adding decimal point to a string variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-decimal-point-to-a-string-variable/m-p/914267#M360254</link>
      <description>&lt;P&gt;I have ICD-10 codes without decimal points and I would like to add decimal points after the 3rd character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;F3342&lt;/P&gt;&lt;P&gt;F348&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I would like to have:&lt;/P&gt;&lt;P&gt;F33.42&lt;/P&gt;&lt;P&gt;F34.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help with this will be appreciated! Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 18:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-decimal-point-to-a-string-variable/m-p/914267#M360254</guid>
      <dc:creator>Tithi</dc:creator>
      <dc:date>2024-02-02T18:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding decimal point to a string variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-decimal-point-to-a-string-variable/m-p/914269#M360255</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have; 
input var $;
cards; 
F3342
F348
;
data want;
	set have; 
	if var ne '' then var= catx('.', substr(var, 1, 3), substr(var, 4)); 
proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SUBSTR and CATX functions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 18:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-decimal-point-to-a-string-variable/m-p/914269#M360255</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2024-02-02T18:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding decimal point to a string variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-decimal-point-to-a-string-variable/m-p/914287#M360258</link>
      <description>&lt;P&gt;Thank you! This worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 19:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-decimal-point-to-a-string-variable/m-p/914287#M360258</guid>
      <dc:creator>Tithi</dc:creator>
      <dc:date>2024-02-02T19:30:56Z</dc:date>
    </item>
  </channel>
</rss>

