<?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: how to select only numeric values in a column in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-to-select-only-numeric-values-in-a-column/m-p/849355#M37109</link>
    <description>ok, thank you for your advice.&lt;BR /&gt;I can't show the real data but,&lt;BR /&gt;&lt;BR /&gt;I have a column called user_id which contains values like:&lt;BR /&gt;&lt;BR /&gt;123456789&lt;BR /&gt;12345678&lt;BR /&gt;9862416351&lt;BR /&gt;(which are the VAT numbers)&lt;BR /&gt;in the same used_id column there are also other values like:&lt;BR /&gt;lcnfno19f44h273g&lt;BR /&gt;frcfvr77d31z976m&lt;BR /&gt;(which instead is the tax code (in Italy))&lt;BR /&gt;&lt;BR /&gt;both types of values are user identifiers.&lt;BR /&gt;&lt;BR /&gt;the first 3 lines of the example are 9,8,10 digits respectively, but should be 11, this is because when downloading the excel file from the portal from which I got the data, the USER_ID column was probably loaded as numerical and did not consider the first digits of the VAT number which are zero.&lt;BR /&gt;so the column values I would like to get are:&lt;BR /&gt;00123456789&lt;BR /&gt;00012345678&lt;BR /&gt;09862416351&lt;BR /&gt;&lt;BR /&gt;and leave the other lines referring to tax codes unchanged.&lt;BR /&gt;&lt;BR /&gt;to do this I saw that the zw.d format can be applied, which however is only applicable to numeric values. but I don't know how to select only the numeric values of the USER_ID column.&lt;BR /&gt;&lt;BR /&gt;I hope I was clearer.</description>
    <pubDate>Tue, 13 Dec 2022 09:41:01 GMT</pubDate>
    <dc:creator>danielelamendol</dc:creator>
    <dc:date>2022-12-13T09:41:01Z</dc:date>
    <item>
      <title>how to select only numeric values in a column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-select-only-numeric-values-in-a-column/m-p/849340#M37107</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;I just started using sas,&lt;/P&gt;&lt;P&gt;I have a column in which I have both the VAT numbers and the tax codes of the subjects.&lt;BR /&gt;There are some VAT numbers that have fewer digits than they should have (they should have 11 but sometimes they are 10 or 9 or 8), in particular the zeros are missing at the beginning.&lt;BR /&gt;So since I saw that there is Zw.d. format, which allows you to add missing zeros, but is only applicable to numeric variables, and so I wanted to select within this column only the numeric variables, apply the format and bring the two parts together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if there is another method to my main problem i'm glad to know,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 09:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-select-only-numeric-values-in-a-column/m-p/849340#M37107</guid>
      <dc:creator>danielelamendol</dc:creator>
      <dc:date>2022-12-13T09:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only numeric values in a column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-select-only-numeric-values-in-a-column/m-p/849341#M37108</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437417"&gt;@danielelamendol&lt;/a&gt;&amp;nbsp;welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problems like this is much easier to solve if you provide some example data that resembles your actual data. Makes it much easier to provide usable code that you can apply to your actual data.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 09:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-select-only-numeric-values-in-a-column/m-p/849341#M37108</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-12-13T09:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to select only numeric values in a column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-to-select-only-numeric-values-in-a-column/m-p/849355#M37109</link>
      <description>ok, thank you for your advice.&lt;BR /&gt;I can't show the real data but,&lt;BR /&gt;&lt;BR /&gt;I have a column called user_id which contains values like:&lt;BR /&gt;&lt;BR /&gt;123456789&lt;BR /&gt;12345678&lt;BR /&gt;9862416351&lt;BR /&gt;(which are the VAT numbers)&lt;BR /&gt;in the same used_id column there are also other values like:&lt;BR /&gt;lcnfno19f44h273g&lt;BR /&gt;frcfvr77d31z976m&lt;BR /&gt;(which instead is the tax code (in Italy))&lt;BR /&gt;&lt;BR /&gt;both types of values are user identifiers.&lt;BR /&gt;&lt;BR /&gt;the first 3 lines of the example are 9,8,10 digits respectively, but should be 11, this is because when downloading the excel file from the portal from which I got the data, the USER_ID column was probably loaded as numerical and did not consider the first digits of the VAT number which are zero.&lt;BR /&gt;so the column values I would like to get are:&lt;BR /&gt;00123456789&lt;BR /&gt;00012345678&lt;BR /&gt;09862416351&lt;BR /&gt;&lt;BR /&gt;and leave the other lines referring to tax codes unchanged.&lt;BR /&gt;&lt;BR /&gt;to do this I saw that the zw.d format can be applied, which however is only applicable to numeric values. but I don't know how to select only the numeric values of the USER_ID column.&lt;BR /&gt;&lt;BR /&gt;I hope I was clearer.</description>
      <pubDate>Tue, 13 Dec 2022 09:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-to-select-only-numeric-values-in-a-column/m-p/849355#M37109</guid>
      <dc:creator>danielelamendol</dc:creator>
      <dc:date>2022-12-13T09:41:01Z</dc:date>
    </item>
  </channel>
</rss>

