<?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-coding contents of variables to be in all lowercase/uppercase and delete punctuation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78035#M22534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset which contains multiple character responses. Below are four example of the same response as far as interpretation, but due to capitalization and punctuation, each response would have to be re-coded. There are multiple questions that have the same issue and I am trying to find ways to save time and also have code to make all the data uniform.&lt;/P&gt;&lt;P&gt;I wanted to clean-up the data prior to doing any re-coding by making all the responses uppercase and deleting any punctuation. Is there a SAS function that can do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of differences in format of responses, but interpretation is the same&lt;/P&gt;&lt;P&gt;I agree.&lt;/P&gt;&lt;P&gt;I Agree&lt;/P&gt;&lt;P&gt;I don't know&lt;/P&gt;&lt;P&gt;I Don't Know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help you can give. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 13:24:41 GMT</pubDate>
    <dc:creator>HyunJee</dc:creator>
    <dc:date>2012-07-30T13:24:41Z</dc:date>
    <item>
      <title>Re-coding contents of variables to be in all lowercase/uppercase and delete punctuation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78035#M22534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset which contains multiple character responses. Below are four example of the same response as far as interpretation, but due to capitalization and punctuation, each response would have to be re-coded. There are multiple questions that have the same issue and I am trying to find ways to save time and also have code to make all the data uniform.&lt;/P&gt;&lt;P&gt;I wanted to clean-up the data prior to doing any re-coding by making all the responses uppercase and deleting any punctuation. Is there a SAS function that can do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of differences in format of responses, but interpretation is the same&lt;/P&gt;&lt;P&gt;I agree.&lt;/P&gt;&lt;P&gt;I Agree&lt;/P&gt;&lt;P&gt;I don't know&lt;/P&gt;&lt;P&gt;I Don't Know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help you can give. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 13:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78035#M22534</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2012-07-30T13:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re-coding contents of variables to be in all lowercase/uppercase and delete punctuation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78036#M22535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, this may get you started:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input var $20.;&lt;/P&gt;&lt;P&gt;new_var=upcase(compress(var,,'kda'));&lt;/P&gt;&lt;P&gt;put new_var=;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;I agree.&lt;/P&gt;&lt;P&gt;I Agree&lt;/P&gt;&lt;P&gt;I don't know&lt;/P&gt;&lt;P&gt;I Don't Know.&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 13:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78036#M22535</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-07-30T13:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re-coding contents of variables to be in all lowercase/uppercase and delete punctuation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78037#M22536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out DataFlux. It is a SAS product specifically designed to improve data quality by doing things like standardizing responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 16:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78037#M22536</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-07-30T16:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re-coding contents of variables to be in all lowercase/uppercase and delete punctuation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78038#M22537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Is this a program that costs in addition to purchasing the SAS base program? Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 13:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78038#M22537</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2012-07-31T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re-coding contents of variables to be in all lowercase/uppercase and delete punctuation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78039#M22538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid it is, and I believe it's fairly expensive. Really, it's only an option if your organization already has it, or alternatively, if your organization does enough data cleansing to make it worth licensing for the whole organization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your one requirement, it would be overkill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 18:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78039#M22538</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-07-31T18:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re-coding contents of variables to be in all lowercase/uppercase and delete punctuation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78040#M22539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hai.kuo,&lt;/P&gt;&lt;P&gt;Thank you for your answer. It was very helpful. I was curious, does the 'kda' refer to the letters in the responses of the 'I agree' and 'I don't know'? Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 16:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78040#M22539</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2012-08-08T16:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re-coding contents of variables to be in all lowercase/uppercase and delete punctuation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78041#M22540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;'kda' will let compress() to only Keep Digits(numbers) and Alphabet (letters), and get rid of anything&amp;nbsp; else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 16:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Re-coding-contents-of-variables-to-be-in-all-lowercase-uppercase/m-p/78041#M22540</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-08-08T16:41:49Z</dc:date>
    </item>
  </channel>
</rss>

