<?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: add a 0 within the character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/add-a-0-within-the-character/m-p/729545#M227045</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length x $ 20;
x='110011001';
y=substr(x,1,6)||'0'||substr(x,7);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 27 Mar 2021 11:01:41 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-03-27T11:01:41Z</dc:date>
    <item>
      <title>add a 0 within the character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/add-a-0-within-the-character/m-p/729538#M227040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on the health dataset and try to add a '0' value within all the ID number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;such as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;original ID&amp;nbsp; &amp;nbsp; &amp;nbsp; New ID&lt;/P&gt;&lt;P&gt;110011001&amp;nbsp; &amp;nbsp; &amp;nbsp;1100110001&lt;/P&gt;&lt;P&gt;110012001&amp;nbsp; &amp;nbsp; &amp;nbsp;1100120001&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to know whether it has a syntax regarding to this.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 08:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/add-a-0-within-the-character/m-p/729538#M227040</guid>
      <dc:creator>simonqin</dc:creator>
      <dc:date>2021-03-27T08:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: add a 0 within the character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/add-a-0-within-the-character/m-p/729545#M227045</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length x $ 20;
x='110011001';
y=substr(x,1,6)||'0'||substr(x,7);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Mar 2021 11:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/add-a-0-within-the-character/m-p/729545#M227045</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-27T11:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: add a 0 within the character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/add-a-0-within-the-character/m-p/729557#M227054</link>
      <description>&lt;P&gt;On top of the suggestion by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;...&lt;/P&gt;
&lt;P&gt;For more extensive / detailed info about&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Inserting a substring into a SAS string"&lt;/P&gt;
&lt;P&gt;, see:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inserting a substring into a SAS string&lt;BR /&gt;By Leonid Batkhan on SAS Users &lt;BR /&gt;February 15, 2021&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2021/02/15/inserting-a-substring-into-a-sas-string/" target="_blank"&gt;Inserting a substring into a SAS string - SAS Users&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 13:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/add-a-0-within-the-character/m-p/729557#M227054</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-03-27T13:36:00Z</dc:date>
    </item>
  </channel>
</rss>

