<?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: Tranwrd function in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181667#M46282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mjaitly&lt;/P&gt;&lt;P&gt;you can use compress with the "keep" option to select all letters from the original text,&lt;/P&gt;&lt;P&gt;because you have capital letters as well I recommend the following syntax :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;have='["New York"]';&lt;/P&gt;&lt;P&gt;need=compress(have,'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'K');&lt;/P&gt;&lt;P&gt;any_other_word='["or any other word"]';&lt;BR /&gt;any_other_word1=compress(any_other_word,'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'K');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way you can deal with capital letters and blanks you want to keep, and get rid of all other punctuations symbols .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Sep 2014 11:47:36 GMT</pubDate>
    <dc:creator>anonymous_user</dc:creator>
    <dc:date>2014-09-01T11:47:36Z</dc:date>
    <item>
      <title>Tranwrd function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181663#M46278</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 need to remove [" from the word say ["Mumbai"]. I am able to remove the [ and ] using functions like Tranwrd however I want to know how to remove the " as the function syntax itself has an opening " and a closing " and I am unable to remove the " (which is itself a part of the input). SAS does not seem to be accepting the " within the opening " and closing ". I will appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 06:47:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181663#M46278</guid>
      <dc:creator>mjaitly</dc:creator>
      <dc:date>2014-09-01T06:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tranwrd function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181664#M46279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you need to remove characters, I would use the character functions not the word ones.&amp;nbsp; eg &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p05ww22zp7lcg3n1bjk7v93tscyo.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/67398/HTML/default/viewer.htm#p05ww22zp7lcg3n1bjk7v93tscyo.htm"&gt;SAS(R) 9.4 Functions and CALL Routines: Reference, Third Edition&lt;/A&gt;&amp;nbsp; PRX (perl regular strings) are also an option. Within SAS the definition of a string is a basic concept but lost a clear reference. Single quotes (no macro expansion) double quotes (with macro expansion can be used to mark a string begin/end . Repeating a quote is masking the meaning.&amp;nbsp;&amp;nbsp; See: &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#p0cq7f0icfjr8vn19vyunwmmsl7m.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#p0cq7f0icfjr8vn19vyunwmmsl7m.htm"&gt;SAS(R) 9.4 Language Reference: Concepts, Third Edition&lt;/A&gt;&amp;nbsp;&amp;nbsp; example on Tom's&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 07:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181664#M46279</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-01T07:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tranwrd function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181665#M46280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;a='["Mumbai"]';&lt;/P&gt;&lt;P&gt;b=compress(a,'"[]');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 07:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181665#M46280</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2014-09-01T07:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Tranwrd function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181666#M46281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;a='["Mumbai"]';&lt;/P&gt;&lt;P&gt;b=Tranwrd(a,'["','');&lt;/P&gt;&lt;P&gt;c=Tranwrd(b,'"]','');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 11:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181666#M46281</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-09-01T11:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tranwrd function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181667#M46282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mjaitly&lt;/P&gt;&lt;P&gt;you can use compress with the "keep" option to select all letters from the original text,&lt;/P&gt;&lt;P&gt;because you have capital letters as well I recommend the following syntax :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;have='["New York"]';&lt;/P&gt;&lt;P&gt;need=compress(have,'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'K');&lt;/P&gt;&lt;P&gt;any_other_word='["or any other word"]';&lt;BR /&gt;any_other_word1=compress(any_other_word,'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'K');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this way you can deal with capital letters and blanks you want to keep, and get rid of all other punctuations symbols .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 11:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181667#M46282</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2014-09-01T11:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tranwrd function</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181668#M46283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to include a quote inside of a quoted string you need to double up the quote character.&amp;nbsp; Note that you can also convert from using using double quotes to single quotes.&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;" ""Mumbai"" "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;' "Mumbai" '&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;"Don't"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;'Don''t'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 12:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Tranwrd-function/m-p/181668#M46283</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-09-01T12:05:46Z</dc:date>
    </item>
  </channel>
</rss>

