<?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 how to extract The last 4 characters or numbers of a variable in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-extract-The-last-4-characters-or-numbers-of-a-variable-in/m-p/700077#M214213</link>
    <description>&lt;P&gt;Provide a list of all customers by name, the customer’s street address, the customer’s city/state/zip code&lt;BR /&gt;(concatenated into a single field such as Radford, VA 24142 – do not show the last 4 digits of the zip code and&lt;BR /&gt;make sure that any extra spaces are eliminated) as Address, the customer’s phone number, the name of the pet&lt;BR /&gt;and the pet’s date of birth for all animals who are not current on their vaccinations (do not show the vaccination&lt;BR /&gt;field in your results).&lt;/P&gt;</description>
    <pubDate>Thu, 19 Nov 2020 03:04:27 GMT</pubDate>
    <dc:creator>aalyoseef</dc:creator>
    <dc:date>2020-11-19T03:04:27Z</dc:date>
    <item>
      <title>how to extract The last 4 characters or numbers of a variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-extract-The-last-4-characters-or-numbers-of-a-variable-in/m-p/700077#M214213</link>
      <description>&lt;P&gt;Provide a list of all customers by name, the customer’s street address, the customer’s city/state/zip code&lt;BR /&gt;(concatenated into a single field such as Radford, VA 24142 – do not show the last 4 digits of the zip code and&lt;BR /&gt;make sure that any extra spaces are eliminated) as Address, the customer’s phone number, the name of the pet&lt;BR /&gt;and the pet’s date of birth for all animals who are not current on their vaccinations (do not show the vaccination&lt;BR /&gt;field in your results).&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 03:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-extract-The-last-4-characters-or-numbers-of-a-variable-in/m-p/700077#M214213</guid>
      <dc:creator>aalyoseef</dc:creator>
      <dc:date>2020-11-19T03:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract The last 4 characters or numbers of a variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-extract-The-last-4-characters-or-numbers-of-a-variable-in/m-p/700086#M214216</link>
      <description>&lt;P&gt;Example data, some values, variable names, something to work with. Approach makes a big difference on what you have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And what have you tried?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 03:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-extract-The-last-4-characters-or-numbers-of-a-variable-in/m-p/700086#M214216</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-19T03:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract The last 4 characters or numbers of a variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-extract-The-last-4-characters-or-numbers-of-a-variable-in/m-p/700108#M214228</link>
      <description>&lt;P&gt;Hardly possible to suggest something useful without seeing the data you have and what you already tried.&lt;/P&gt;
&lt;P&gt;Some hints:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;to control which variable is written to a dataset, use keep OR drop statement&lt;/LI&gt;
&lt;LI&gt;alphanumeric variables are always padded with blanks to fill the length, so "make sure that any extra spaces are eliminated" could be a challange&lt;/LI&gt;
&lt;LI&gt;the if-statement is used to decide which observation to write to a dataset&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 19 Nov 2020 06:13:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-extract-The-last-4-characters-or-numbers-of-a-variable-in/m-p/700108#M214228</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-11-19T06:13:25Z</dc:date>
    </item>
  </channel>
</rss>

