<?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: problem facing to deal with delimiter files. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580774#M7832</link>
    <description>&lt;P&gt;Please describe what the problem is? How does your result differ from the result you want to see?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2019 12:31:12 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-08-13T12:31:12Z</dc:date>
    <item>
      <title>problem facing to deal with delimiter files.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580771#M7830</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have data set which has delimiter values like this&amp;nbsp;1Sep11 389.00 1Oct11 491.00 1Nov11 370.00 1Dec11 335.00&lt;/P&gt;&lt;P&gt;and I want to get these values in two columns like Date and sales amount. I was this code. pls, can anyone tell me what I'm doing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data Daily_sales;&lt;BR /&gt;infile 'D:\SASUniversityEdition\Daily_sales.txt';&lt;BR /&gt;input Date Sales_Amount&amp;nbsp; @@;&lt;BR /&gt;format date Sales_Amount ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580771#M7830</guid>
      <dc:creator>u39734216</dc:creator>
      <dc:date>2019-08-13T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem facing to deal with delimiter files.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580773#M7831</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Daily_sales;
infile 'D:\SASUniversityEdition\Daily_sales.txt';
input Date :DATE7. Sales_Amount  @@;
format date DATE9. Sales_Amount ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:31:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580773#M7831</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-08-13T12:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem facing to deal with delimiter files.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580774#M7832</link>
      <description>&lt;P&gt;Please describe what the problem is? How does your result differ from the result you want to see?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580774#M7832</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-08-13T12:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem facing to deal with delimiter files.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580783#M7833</link>
      <description>It is not giving me the sales amount in a proper way. Like 389.00&lt;BR /&gt;&lt;BR /&gt;It's showing me 389 only.</description>
      <pubDate>Tue, 13 Aug 2019 12:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580783#M7833</guid>
      <dc:creator>u39734216</dc:creator>
      <dc:date>2019-08-13T12:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem facing to deal with delimiter files.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580785#M7834</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/283659"&gt;@u39734216&lt;/a&gt;&amp;nbsp; If format is your concern, try this format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format date DATE9. Sales_Amount 8.2 ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580785#M7834</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-08-13T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: problem facing to deal with delimiter files.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580816#M7835</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/283659"&gt;@u39734216&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;It is not giving me the sales amount in a proper way. Like 389.00&lt;BR /&gt;&lt;BR /&gt;It's showing me 389 only.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you do not assign a specific display format then SAS will use one of the BEST formats, often BEST12. One behavior of the BEST formats is that if there is no non-zero decimal portion they are not displayed.&lt;/P&gt;
&lt;P&gt;Understanding what Formats and Informats&amp;nbsp;do is a key part of the flexibility of SAS.&lt;/P&gt;
&lt;P&gt;Consider the following program code. If you submit it and examine the log you will see several different, by no means all, formats applied to the same value.&lt;/P&gt;
&lt;PRE&gt;data junk;
   x=389.00;
   put "Fixed 8.2 " x= f8.2 "dollar 8.2 " x= dollar8.2
       "Leading zero " x= z8.2  "word  " x= wordf30.;

run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Aug 2019 14:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580816#M7835</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-13T14:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem facing to deal with delimiter files.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580839#M7836</link>
      <description>&lt;P&gt;I'm 80% certain you're going to have errors throughout your log, since you're path includes SAS University Edition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For starters the file path is likely incorrect if you're actually using SAS University edition so that will give you a file not found error.&lt;/P&gt;
&lt;P&gt;Fix the file path first and then you can figure out if the rest of your code works or doesn't.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The filepath should likely be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile '/folders/myfolders/Daily_sales.txt';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SAS University Edition runs on a Unix system so you need Unix file paths, not Windows and unless you've set up your own shared folders you need to place your files in the myfolders folder you set up during installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 15:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/problem-facing-to-deal-with-delimiter-files/m-p/580839#M7836</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-13T15:19:03Z</dc:date>
    </item>
  </channel>
</rss>

