<?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 Need to get rid of () in a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-rid-of-in-a-variable/m-p/53760#M256335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; To clarify are you looking to USE a macro function or to create a macro to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to create a macro what do you envision as the input and what as the output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the macro functions you'll can look into are:&lt;/P&gt;&lt;P&gt;%scan &lt;/P&gt;&lt;P&gt;%if %then %do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could just wap the compress function in a macro .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could always use a find or index function in a data _null_ step. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically there's many ways to do this and it sounds a lot like a home work question to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also move this thread to the macro language forum. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 17:49:27 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2011-08-24T17:49:27Z</dc:date>
    <item>
      <title>Need to get rid of () in a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-rid-of-in-a-variable/m-p/53757#M256332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;please I need assistance to resolve an issue. The issue is on how to use macro to remove parenthesis () from variable string. For example given the following variables:&lt;/P&gt;&lt;P&gt;(cup table plates iron street home) but I need the remove the () in order to work with the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 14:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-get-rid-of-in-a-variable/m-p/53757#M256332</guid>
      <dc:creator>fadtt</dc:creator>
      <dc:date>2011-08-24T14:53:57Z</dc:date>
    </item>
    <item>
      <title>Need to get rid of () in a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-rid-of-in-a-variable/m-p/53758#M256333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get rid of them by using the compress function.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat stuff $80.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input stuff &amp;amp;;&lt;/P&gt;&lt;P&gt;&amp;nbsp; have=compress(stuff,"()");&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;(cup table plates iron street home)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-get-rid-of-in-a-variable/m-p/53758#M256333</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-24T15:00:30Z</dc:date>
    </item>
    <item>
      <title>Need to get rid of () in a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-rid-of-in-a-variable/m-p/53759#M256334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks art297 I know that is possible but I like to solve this using macro function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-get-rid-of-in-a-variable/m-p/53759#M256334</guid>
      <dc:creator>fadtt</dc:creator>
      <dc:date>2011-08-24T15:03:31Z</dc:date>
    </item>
    <item>
      <title>Need to get rid of () in a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-rid-of-in-a-variable/m-p/53760#M256335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; To clarify are you looking to USE a macro function or to create a macro to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to create a macro what do you envision as the input and what as the output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the macro functions you'll can look into are:&lt;/P&gt;&lt;P&gt;%scan &lt;/P&gt;&lt;P&gt;%if %then %do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could just wap the compress function in a macro .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could always use a find or index function in a data _null_ step. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically there's many ways to do this and it sounds a lot like a home work question to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also move this thread to the macro language forum. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 17:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-get-rid-of-in-a-variable/m-p/53760#M256335</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-08-24T17:49:27Z</dc:date>
    </item>
  </channel>
</rss>

