<?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 wildcards to remove zeros in my numeric variables in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/wildcards-to-remove-zeros-in-my-numeric-variables/m-p/168210#M3259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset with a set of numeric variables. The names are like "a_1" to "a_8" up to "f_1" to "f_6". So the names are a letter, underscore and a number&amp;nbsp; (not all the numeric variables are like this, but most of them).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to remove all the zeroes in the numeric variables with the structure like the one above. But I cant get any kind of wildcards to work. Does anyone have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, my attempts has been like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dataset1;&lt;/P&gt;&lt;P&gt;set dataset1;&lt;/P&gt;&lt;P&gt;if b%= 0 then b%= ' ' ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Hank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Feb 2014 12:59:38 GMT</pubDate>
    <dc:creator>Hank</dc:creator>
    <dc:date>2014-02-09T12:59:38Z</dc:date>
    <item>
      <title>wildcards to remove zeros in my numeric variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/wildcards-to-remove-zeros-in-my-numeric-variables/m-p/168210#M3259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset with a set of numeric variables. The names are like "a_1" to "a_8" up to "f_1" to "f_6". So the names are a letter, underscore and a number&amp;nbsp; (not all the numeric variables are like this, but most of them).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to remove all the zeroes in the numeric variables with the structure like the one above. But I cant get any kind of wildcards to work. Does anyone have any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, my attempts has been like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dataset1;&lt;/P&gt;&lt;P&gt;set dataset1;&lt;/P&gt;&lt;P&gt;if b%= 0 then b%= ' ' ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Hank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 12:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/wildcards-to-remove-zeros-in-my-numeric-variables/m-p/168210#M3259</guid>
      <dc:creator>Hank</dc:creator>
      <dc:date>2014-02-09T12:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: wildcards to remove zeros in my numeric variables</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/wildcards-to-remove-zeros-in-my-numeric-variables/m-p/168211#M3260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using the wrong syntax.&amp;nbsp; You will need to create and &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#p08do6szetrxe2n136ush727sbuo.htm"&gt;ARRAY&lt;/A&gt; using a &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p0wphcpsfgx6o7n1sjtqzizp1n39.htm"&gt;SAS Variable List&lt;/A&gt; then you can iterate through the elements in the array and use an IF statement to change the values as you see fit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 13:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/wildcards-to-remove-zeros-in-my-numeric-variables/m-p/168211#M3260</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-02-09T13:14:46Z</dc:date>
    </item>
  </channel>
</rss>

