<?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: Missing Dollar Values Far Right Side in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298555#M312191</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you shall check the import step and look at the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if your data is organised well in the *.txt file the import shall work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by the way better use &lt;STRONG&gt;modified list input&lt;/STRONG&gt; rather than length statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000144370.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000144370.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2016 08:40:05 GMT</pubDate>
    <dc:creator>Loko</dc:creator>
    <dc:date>2016-09-15T08:40:05Z</dc:date>
    <item>
      <title>Missing Dollar Values Far Right Side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298546#M312189</link>
      <description>&lt;P&gt;I was able to show all of the values except for the Total Sales column. I can show the value in thousands, but the values in hundred just won't show up. How do I fix the code? Thanks. Attached png file is the output of the code.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data bikes1;&lt;BR /&gt;infile "/folders/myfolders/austin.txt" dlm='09'x;&lt;BR /&gt;;&lt;BR /&gt;length&lt;BR /&gt;Country $14&lt;BR /&gt;Bike $13&lt;BR /&gt;Model $10&lt;BR /&gt;Units 4&lt;BR /&gt;Price 6&lt;BR /&gt;TotalSales 7&lt;BR /&gt;;&lt;BR /&gt;format Price dollar6. TotalSales dollar7.;&lt;BR /&gt;input Country Bike Model Units Price dollar6. TotalSales dollar9.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=bikes1 noobs;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;*&lt;BR /&gt;USA Road Bike Trek 5000 $2,200 $11,000&lt;BR /&gt;USA Hybrid Trek 4500 $650 $2,925&lt;BR /&gt;USA Road Bike Cannondale 2000 $2,100 $4,200&lt;BR /&gt;USA Mountain Bike Trek 6000 $1,200 $7,200&lt;BR /&gt;USA Mountain Bike Cannondale 4000 $2,700 $10,800&lt;BR /&gt;United Kingdom Hybrid Cannondale 500 $880 $440&lt;BR /&gt;United Kingdom Hybrid Trek 800 $490 $392&lt;BR /&gt;United Kingdom Road Bike Cannondale 1200 $2,123 $2,548&lt;BR /&gt;United Kingdom Road Bike Trek 2444 $2,100 $5,132&lt;BR /&gt;United Kingdom Mountain Bike Trek 1211 $1,121 $1,358&lt;BR /&gt;Italy Mountain Bike Trek 3400 $1,877 $6,382&lt;BR /&gt;Italy Road Bike Trek 4500 $2,890 $13,005&lt;BR /&gt;Italy Hybrid Trek 700 $690 $483&lt;BR /&gt;France Road Bike Cannondale 900 $3,700 $3,330&lt;BR /&gt;France Road Bike Trek 3400 $2,500 $8,500&lt;BR /&gt;France Hybrid Trek 1100 $540 $594&lt;BR /&gt;France Mountain Bike Cannondale 800 $1,899 $1,519&lt;BR /&gt;France Mountain Bike Trek 5600 $1,300 $7,280&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12978i3B9C6CBA6D2F21D4/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="bike.png" title="bike.png" /&gt;</description>
      <pubDate>Thu, 15 Sep 2016 07:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298546#M312189</guid>
      <dc:creator>jermanie</dc:creator>
      <dc:date>2016-09-15T07:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Dollar Values Far Right Side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298554#M312190</link>
      <description>&lt;P&gt;There are various things wrong with the read in. &amp;nbsp;This code will read in the data correctly:&lt;/P&gt;
&lt;PRE&gt;data bikes1;
  infile datalines dlm="|";
  length  country $14
          bike $13
          model $10
          units 4
          price 6
          totalsales 7;
  format price dollar6. totalSales dollar9.;
  informat price dollar6. totalsales dollar9.;
  input country bike model units price totalsales;
datalines;
USA|Mountain Bike|Cannondale|4000|$2,700|$10,800
United Kingdom|Hybrid|Cannondale|500|$880|$440
;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Sep 2016 08:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298554#M312190</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-09-15T08:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Dollar Values Far Right Side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298555#M312191</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you shall check the import step and look at the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if your data is organised well in the *.txt file the import shall work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by the way better use &lt;STRONG&gt;modified list input&lt;/STRONG&gt; rather than length statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000144370.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000144370.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 08:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298555#M312191</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-09-15T08:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Dollar Values Far Right Side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298557#M312192</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data bikes1;
infile "/folders/myfolders/austin.txt" dlm='09'x;
;
length
Country $14
Bike $13
Model $10
Units 4
Price 6
TotalSales 7
;
informat Price dollar6. TotalSales dollar7.;
input Country Bike Model Units Price TotalSales ;
run;
proc print data=bikes1 noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Made two changes&lt;/P&gt;&lt;P&gt;1. format changed to informat&lt;/P&gt;&lt;P&gt;2. input statement I removed all the format.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 08:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298557#M312192</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-09-15T08:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Dollar Values Far Right Side</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298688#M312193</link>
      <description>&lt;P&gt;Thanks a lot. Then, I added another line of code to put the $ format back in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data bikes1;&lt;BR /&gt;infile "/folders/myfolders/austin.txt" dlm='09'x;&lt;BR /&gt;;&lt;BR /&gt;length&lt;BR /&gt;Country $14&lt;BR /&gt;Bike $13&lt;BR /&gt;Model $10&lt;BR /&gt;Units 4&lt;BR /&gt;Price 6&lt;BR /&gt;TotalSales 7&lt;BR /&gt;;&lt;BR /&gt;informat Price dollar6. TotalSales dollar7.;&lt;BR /&gt;format Price dollar6. TotalSales dollar7.;&lt;BR /&gt;input Country Bike Model Units Price TotalSales;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-Dollar-Values-Far-Right-Side/m-p/298688#M312193</guid>
      <dc:creator>jermanie</dc:creator>
      <dc:date>2016-09-15T15:29:15Z</dc:date>
    </item>
  </channel>
</rss>

