<?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: SAS import text file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336459#M76275</link>
    <description>&lt;P&gt;Thanks Avinas.. it worked.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2017 08:14:12 GMT</pubDate>
    <dc:creator>ramya_sahu</dc:creator>
    <dc:date>2017-02-28T08:14:12Z</dc:date>
    <item>
      <title>SAS import text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336447#M76272</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very much new to SAS. So, Please help me importing attached text file to SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 06:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336447#M76272</guid>
      <dc:creator>ramya_sahu</dc:creator>
      <dc:date>2017-02-28T06:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS import text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336454#M76273</link>
      <description>&lt;P&gt;Since you have fixed columns, the blanks in the model text don't matter.&lt;/P&gt;
&lt;P&gt;Use formatted input with position modifiers:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input
  @1 id 3.
  @5 orderdate date9.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and so on. Use the truncover option in the infile statement, since your last column has a variable number of digits.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 07:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336454#M76273</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-28T07:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS import text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336455#M76274</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename orders 'C:\orders.txt';

data want;
	infile orders firstobs=2;
	informat orderdate date7.;
	format orderdate date7.;
	input ID Orderdate Model $12. Quantity;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Feb 2017 08:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336455#M76274</guid>
      <dc:creator>avinashns</dc:creator>
      <dc:date>2017-02-28T08:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS import text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336459#M76275</link>
      <description>&lt;P&gt;Thanks Avinas.. it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 08:14:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336459#M76275</guid>
      <dc:creator>ramya_sahu</dc:creator>
      <dc:date>2017-02-28T08:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS import text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336461#M76276</link>
      <description>&lt;P&gt;Your file does not open. Proc import might be easier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile=.. your path ../order.txt''
            out=order
            dbms=dlm
            replace;
     delimiter='09'x; * for tab-delimited files;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#n1w1xy48wd290bn1mqalitn7wy13.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/69850/HTML/default/viewer.htm#n1w1xy48wd290bn1mqalitn7wy13.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 08:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336461#M76276</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2017-02-28T08:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS import text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336466#M76278</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. for below file format is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID Orderdate Model Quantity&lt;BR /&gt;287 15OCT03 Delta Breeze 15&lt;BR /&gt;287 15OCT03 Santa Ana 15&lt;BR /&gt;274 16OCT03 Jet Stream 1&lt;BR /&gt;174 17OCT03 Santa Ana 20&lt;BR /&gt;174 17OCT03 Nor'easter 5&lt;BR /&gt;174 17OCT03 Scirocco 1&lt;BR /&gt;347 18OCT03 Mistral 1&lt;BR /&gt;287 21OCT03 Delta Breeze 30&lt;BR /&gt;287 21OCT03 Santa Ana 25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Feb 2017 08:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336466#M76278</guid>
      <dc:creator>ramya_sahu</dc:creator>
      <dc:date>2017-02-28T08:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS import text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336467#M76279</link>
      <description>&lt;P&gt;Thanks for your response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 08:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336467#M76279</guid>
      <dc:creator>ramya_sahu</dc:creator>
      <dc:date>2017-02-28T08:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS import text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336468#M76280</link>
      <description>&lt;P&gt;To deal with blanks in values, you either need fixed columns, or enclose the fields containing blanks in quotes, or use a field separator other than a blank (eg .csv file with commas as separator).&lt;/P&gt;
&lt;P&gt;Everything else needs lots of programming effort to determine which "words" belong into one column.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131420"&gt;@ramya_sahu&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks. for below file format is it possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID Orderdate Model Quantity&lt;BR /&gt;287 15OCT03 Delta Breeze 15&lt;BR /&gt;287 15OCT03 Santa Ana 15&lt;BR /&gt;274 16OCT03 Jet Stream 1&lt;BR /&gt;174 17OCT03 Santa Ana 20&lt;BR /&gt;174 17OCT03 Nor'easter 5&lt;BR /&gt;174 17OCT03 Scirocco 1&lt;BR /&gt;347 18OCT03 Mistral 1&lt;BR /&gt;287 21OCT03 Delta Breeze 30&lt;BR /&gt;287 21OCT03 Santa Ana 25&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 08:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-import-text-file/m-p/336468#M76280</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-28T08:32:59Z</dc:date>
    </item>
  </channel>
</rss>

