<?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: Reading Negative Values with Parenthsis from Raw CSV in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-Negative-Values-with-Parenthsis-from-Raw-CSV/m-p/194752#M36618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for help! It worked. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2015 11:55:29 GMT</pubDate>
    <dc:creator>asimraja</dc:creator>
    <dc:date>2015-07-03T11:55:29Z</dc:date>
    <item>
      <title>Reading Negative Values with Parenthsis from Raw CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Negative-Values-with-Parenthsis-from-Raw-CSV/m-p/194750#M36616</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'm trying to read a CSV with long records using "infile" statement. I can read the long record using "lrecl=" option. However, this file also has numeric values enclosed within parenthesis, which is giving me an error. I'm using the informat "comma". Can you please advise me how I can fix this? Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data input_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile "&amp;amp;out_path./&amp;amp;fn." dlm="," dsd missover pad firstobs=2 obs=5 lrecl=5640;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSIP :$9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yield_1 - Yield_912 :comma10.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy :$1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop dummy;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Observation value causing error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; 0.670 , (5.095), 3.168&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Note, as the record is very long, I've only listed the values 323, 324 and 325. 323 and 325 are ready correctly) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NOTE: Invalid data for Yield_324 in line 5 1890-1897.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 23:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Negative-Values-with-Parenthsis-from-Raw-CSV/m-p/194750#M36616</guid>
      <dc:creator>asimraja</dc:creator>
      <dc:date>2015-07-02T23:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Negative Values with Parenthsis from Raw CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Negative-Values-with-Parenthsis-from-Raw-CSV/m-p/194751#M36617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt; (Yield_1 - Yield_912) (:comma10.)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;instead. Without the parentheses, the &lt;STRONG&gt;comma.&lt;/STRONG&gt; format applies only to the last variable in the list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;PG&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 03:38:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Negative-Values-with-Parenthsis-from-Raw-CSV/m-p/194751#M36617</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-07-03T03:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Negative Values with Parenthsis from Raw CSV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Negative-Values-with-Parenthsis-from-Raw-CSV/m-p/194752#M36618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for help! It worked. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 11:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Negative-Values-with-Parenthsis-from-Raw-CSV/m-p/194752#M36618</guid>
      <dc:creator>asimraja</dc:creator>
      <dc:date>2015-07-03T11:55:29Z</dc:date>
    </item>
  </channel>
</rss>

