<?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 Reading raw currency data with an abbreviated suffix in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-currency-data-with-an-abbreviated-suffix/m-p/250486#M47230</link>
    <description>&lt;P&gt;I'm trying to read a raw data file with abbreviated currency values like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1 Exxon Mobil United States $433.5B $41.1B $331.1B $407.4B&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2 JPMorgan Chase United States $110.8B $19B $2,265.8B $170.1B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is actual raw data file. &amp;nbsp;I cannot get the data in correctly...the following code is about as close to success as I have gotten:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data BigCompanies;&lt;BR /&gt;infile 'c:\projectdata\BigCompanies.dat';&lt;BR /&gt;input rank 3. company $ 6-31 country $ 35-49 @'$' sales dollar5.1&amp;nbsp;&lt;BR /&gt;@'$' profits dollar5.1 @'$' assets dollar5.1 @'$' market dollar5.1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Struggling...thinking I must be making this harder than it needs to be and would appreciate any assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2016 02:22:29 GMT</pubDate>
    <dc:creator>wiphil</dc:creator>
    <dc:date>2016-02-17T02:22:29Z</dc:date>
    <item>
      <title>Reading raw currency data with an abbreviated suffix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-currency-data-with-an-abbreviated-suffix/m-p/250486#M47230</link>
      <description>&lt;P&gt;I'm trying to read a raw data file with abbreviated currency values like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1 Exxon Mobil United States $433.5B $41.1B $331.1B $407.4B&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2 JPMorgan Chase United States $110.8B $19B $2,265.8B $170.1B&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is actual raw data file. &amp;nbsp;I cannot get the data in correctly...the following code is about as close to success as I have gotten:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data BigCompanies;&lt;BR /&gt;infile 'c:\projectdata\BigCompanies.dat';&lt;BR /&gt;input rank 3. company $ 6-31 country $ 35-49 @'$' sales dollar5.1&amp;nbsp;&lt;BR /&gt;@'$' profits dollar5.1 @'$' assets dollar5.1 @'$' market dollar5.1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Struggling...thinking I must be making this harder than it needs to be and would appreciate any assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 02:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-currency-data-with-an-abbreviated-suffix/m-p/250486#M47230</guid>
      <dc:creator>wiphil</dc:creator>
      <dc:date>2016-02-17T02:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading raw currency data with an abbreviated suffix</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-raw-currency-data-with-an-abbreviated-suffix/m-p/250494#M47233</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile '/folders/myfolders/BigCompanies.txt' truncover expandtabs;
input rank company &amp;amp; $40. country &amp;amp; $40. 
(_sales _profits  _assets  _market) (: $40.) ;
 sales =input(compress(_sales,'B'),dollar32.);
 profits =input(compress(_profits ,'B'),dollar32.);
 assets =input(compress(_assets ,'B'),dollar32.);
 market =input(compress(_market ,'B'),dollar32.);
drop _:;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Feb 2016 03:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-raw-currency-data-with-an-abbreviated-suffix/m-p/250494#M47233</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-02-17T03:17:46Z</dc:date>
    </item>
  </channel>
</rss>

