<?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: Trouble with parentheses in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-parentheses/m-p/152575#M40135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first step begins with finding out what the variables actually contain.&amp;nbsp; Taking your word for it that the variables are actually numeric, the only way that parentheses print is because the variables are printed with a format.&amp;nbsp; So you have to remove the format and print a few actual values to get some idea of what the variables contain.&amp;nbsp; Luckily, that is easy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=have (obs=20);&lt;/P&gt;&lt;P&gt;var column1 column2;&lt;/P&gt;&lt;P&gt;format column1 column2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, it's possible that you will have enough information to perform the subtraction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2014 18:21:57 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2014-06-23T18:21:57Z</dc:date>
    <item>
      <title>Trouble with parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-parentheses/m-p/152574#M40134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new and am stuck on how to subtract one column from another - both are numeric and have a year (ex. 1994) as well as a number in parentheses matching the year (ex. 94). So each value looks like "(94) 1994", or in another example "(81) 1981". When I subtract the two values from another, I get some funky answers (negative and exponential). What's a good way of getting rid of one of the values for a large dataset and completing the subtraction task? &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 17:26:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-parentheses/m-p/152574#M40134</guid>
      <dc:creator>nicopark</dc:creator>
      <dc:date>2014-06-23T17:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-parentheses/m-p/152575#M40135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first step begins with finding out what the variables actually contain.&amp;nbsp; Taking your word for it that the variables are actually numeric, the only way that parentheses print is because the variables are printed with a format.&amp;nbsp; So you have to remove the format and print a few actual values to get some idea of what the variables contain.&amp;nbsp; Luckily, that is easy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=have (obs=20);&lt;/P&gt;&lt;P&gt;var column1 column2;&lt;/P&gt;&lt;P&gt;format column1 column2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, it's possible that you will have enough information to perform the subtraction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 18:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Trouble-with-parentheses/m-p/152575#M40135</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-06-23T18:21:57Z</dc:date>
    </item>
  </channel>
</rss>

