<?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 Write a simple code to delete one zero from the below value. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-simple-code-to-delete-one-zero-from-the-below-value/m-p/58929#M16570</link>
    <description>i have variable with value, example: N01221-0123-0101. i just need the value as&lt;BR /&gt;
N01221-123-0101. by deleting a zero from the right in the middle one (i.e 0123 to 123). can you write it

Message was edited by: sreeram</description>
    <pubDate>Thu, 28 Apr 2011 04:14:26 GMT</pubDate>
    <dc:creator>sreeram</dc:creator>
    <dc:date>2011-04-28T04:14:26Z</dc:date>
    <item>
      <title>Write a simple code to delete one zero from the below value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-simple-code-to-delete-one-zero-from-the-below-value/m-p/58929#M16570</link>
      <description>i have variable with value, example: N01221-0123-0101. i just need the value as&lt;BR /&gt;
N01221-123-0101. by deleting a zero from the right in the middle one (i.e 0123 to 123). can you write it

Message was edited by: sreeram</description>
      <pubDate>Thu, 28 Apr 2011 04:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Write-a-simple-code-to-delete-one-zero-from-the-below-value/m-p/58929#M16570</guid>
      <dc:creator>sreeram</dc:creator>
      <dc:date>2011-04-28T04:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Write a simple code to delete one zero from the below value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-simple-code-to-delete-one-zero-from-the-below-value/m-p/58930#M16571</link>
      <description>This below code is working thanks for your help GOD.	&lt;BR /&gt;
&lt;BR /&gt;
if substr(usubjid,6,1) = '0' then substr(usubjid,6,4)=substr(usubjid,7,3);&lt;BR /&gt;
	breaks=substr(usubjid,10,5);&lt;BR /&gt;
	usubjid=substr(usubjid,1,8)||strip(breaks);</description>
      <pubDate>Thu, 28 Apr 2011 05:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Write-a-simple-code-to-delete-one-zero-from-the-below-value/m-p/58930#M16571</guid>
      <dc:creator>sreeram</dc:creator>
      <dc:date>2011-04-28T05:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Write a simple code to delete one zero from the below value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Write-a-simple-code-to-delete-one-zero-from-the-below-value/m-p/58931#M16572</link>
      <description>Hello Sreeram,&lt;BR /&gt;
&lt;BR /&gt;
How about this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data i;&lt;BR /&gt;
 s='N01221-0123-0101';&lt;BR /&gt;
 i=INDEX(s,'-');&lt;BR /&gt;
 r=SUBSTR(s,1,i)||SUBSTR(s,i+2);&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Thu, 28 Apr 2011 13:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Write-a-simple-code-to-delete-one-zero-from-the-below-value/m-p/58931#M16572</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-04-28T13:23:47Z</dc:date>
    </item>
  </channel>
</rss>

