<?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 Urgent help for  importing txt format data into SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11430#M1056</link>
    <description>I have this kind data in txt format. I need urgent help to import into SAS data set.&lt;BR /&gt;
------------------------------------------------------------------------------------&lt;BR /&gt;
|             193100 | 20100331           | 97                 |                  3 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             200998 | 20100331           | 97                 |                  4 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             201707 | 20100331           | 97                 |                  2 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             215848 | 20100331           | 97                 |                  1 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             233171 | 20100331           | 97                 |                  3 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             250530 | 20100331           | 97                 |                 16 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
    <pubDate>Wed, 28 Apr 2010 13:54:04 GMT</pubDate>
    <dc:creator>QLi</dc:creator>
    <dc:date>2010-04-28T13:54:04Z</dc:date>
    <item>
      <title>Urgent help for  importing txt format data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11430#M1056</link>
      <description>I have this kind data in txt format. I need urgent help to import into SAS data set.&lt;BR /&gt;
------------------------------------------------------------------------------------&lt;BR /&gt;
|             193100 | 20100331           | 97                 |                  3 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             200998 | 20100331           | 97                 |                  4 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             201707 | 20100331           | 97                 |                  2 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             215848 | 20100331           | 97                 |                  1 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             233171 | 20100331           | 97                 |                  3 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
|             250530 | 20100331           | 97                 |                 16 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 28 Apr 2010 13:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11430#M1056</guid>
      <dc:creator>QLi</dc:creator>
      <dc:date>2010-04-28T13:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help for  importing txt format data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11431#M1057</link>
      <description>Hi:&lt;BR /&gt;
  Does your data have the rows of dashes (-----------------------------) and the pipe characters between each column ( | )?????&lt;BR /&gt;
  &lt;BR /&gt;
  Reading a TXT file into SAS is fairly simple. You might use PROC IMPORT or you might use the IMPORT Wizard (in Enterprise Guide) or you might use a DATA step program with INFILE and INPUT statements.&lt;BR /&gt;
 &lt;BR /&gt;
  Here's a good place to start reading (and there are a lot of examples here in the documentation -- one of them should fit your data scenario):&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001302670.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001302670.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 28 Apr 2010 16:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11431#M1057</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-04-28T16:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help for  importing txt format data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11432#M1058</link>
      <description>It can be done as - &lt;BR /&gt;
data data1;&lt;BR /&gt;
infile 'c:\mtdata.txt';&lt;BR /&gt;
input var1-var4;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 29 Apr 2010 09:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11432#M1058</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-04-29T09:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help for  importing txt format data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11433#M1059</link>
      <description>data want(drop=_dummy_);&lt;BR /&gt;
  infile datalines dlm='|' dsd truncover;&lt;BR /&gt;
  input @1 _dummy_:$1. @;&lt;BR /&gt;
  if _dummy_ ne '-' then&lt;BR /&gt;
  do;&lt;BR /&gt;
    input var1 var2 var3 var4;&lt;BR /&gt;
    output;&lt;BR /&gt;
  end;&lt;BR /&gt;
  datalines;&lt;BR /&gt;
------------------------------------------------------------------------------------&lt;BR /&gt;
| 193100 | 20100331 | 97 | 3 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
| 200998 | 20100331 | 97 | 4 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
| 201707 | 20100331 | 97 | 2 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
| 215848 | 20100331 | 97 | 1 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
| 233171 | 20100331 | 97 | 3 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
| 250530 | 20100331 | 97 | 16 |&lt;BR /&gt;
-------------------------------------------------------------------------------------&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data=want;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 29 Apr 2010 11:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11433#M1059</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2010-04-29T11:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help for  importing txt format data into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11434#M1060</link>
      <description>or even&lt;BR /&gt;
&lt;BR /&gt;
data want;&lt;BR /&gt;
infile datalines dlm='|' dsd truncover;&lt;BR /&gt;
input @;&lt;BR /&gt;
if _infile_ ne: '-' ;&lt;BR /&gt;
input @3 var1 var2 var3 var4;&lt;BR /&gt;
datalines;</description>
      <pubDate>Fri, 30 Apr 2010 01:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Urgent-help-for-importing-txt-format-data-into-SAS/m-p/11434#M1060</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2010-04-30T01:32:15Z</dc:date>
    </item>
  </channel>
</rss>

