<?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: read free format external file into sas data sets in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1292#M597</link>
    <description>I am quite eager to see a response for this post, as Dave mentioned from &lt;B&gt;&lt;I&gt;Technical Support&lt;/I&gt;&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
We had a similar issue, and finally we have requested the source system to provide a file with a defined delimiter, and could resolve it. More interesting if we have city, sur_name, fore_name followed by income..&lt;BR /&gt;
&lt;BR /&gt;
Best Cheers&lt;BR /&gt;
Rao</description>
    <pubDate>Fri, 08 Sep 2006 15:53:53 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-09-08T15:53:53Z</dc:date>
    <item>
      <title>read free format external file into sas data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1290#M595</link>
      <description>Does anyone know how can I read character values that contain single embedded blanks and these raw data are not in fixed columns. The &amp;amp; modifier precedes a specified informat can only read data that is end with two or more consecutive blanks. What if the column followed by only one blank? eg. the following raw data includes two colums: city and income and they are seperated by single blank. Can anyone help me figure this out: how can I read this type of raw data into sas data set? Thanks!!&lt;BR /&gt;
&lt;BR /&gt;
NEW YORK 7,262,700 &lt;BR /&gt;
LOS ANGELES 3,259,340 &lt;BR /&gt;
CHICAGO 3,009,530</description>
      <pubDate>Fri, 18 Aug 2006 00:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1290#M595</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-08-18T00:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: read free format external file into sas data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1291#M596</link>
      <description>This is an appropriate question for Technical Support. See&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/submit_emits2.html" target="_blank"&gt;http://support.sas.com/techsup/contact/submit_emits2.html&lt;/A&gt; .&lt;BR /&gt;
&lt;BR /&gt;
-- David Kelley, SAS</description>
      <pubDate>Fri, 18 Aug 2006 18:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1291#M596</guid>
      <dc:creator>David_SAS</dc:creator>
      <dc:date>2006-08-18T18:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: read free format external file into sas data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1292#M597</link>
      <description>I am quite eager to see a response for this post, as Dave mentioned from &lt;B&gt;&lt;I&gt;Technical Support&lt;/I&gt;&lt;/B&gt;.&lt;BR /&gt;
&lt;BR /&gt;
We had a similar issue, and finally we have requested the source system to provide a file with a defined delimiter, and could resolve it. More interesting if we have city, sur_name, fore_name followed by income..&lt;BR /&gt;
&lt;BR /&gt;
Best Cheers&lt;BR /&gt;
Rao</description>
      <pubDate>Fri, 08 Sep 2006 15:53:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1292#M597</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-09-08T15:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: read free format external file into sas data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1293#M598</link>
      <description>I'm afraid there would not be any generic answer to that kind of problem. Yet I can suggest some hints to help :&lt;BR /&gt;
&lt;BR /&gt;
1) DATA ... ;&lt;BR /&gt;
    INFILE ... ;&lt;BR /&gt;
    INPUT ;&lt;BR /&gt;
After that, a temporary character variable named _INFILE_ is available in the PDV. It consists in the whole line of data.&lt;BR /&gt;
&lt;BR /&gt;
2) you can then try to "slice" it down into variables using REVERSE, SCAN, PRXMATCH, INDEXW functions.&lt;BR /&gt;
&lt;BR /&gt;
3) you can test "patterns" in data (such as a number, with or without commas), with PRXMATCH and/or PUT functions.&lt;BR /&gt;
&lt;BR /&gt;
That would be a painful job, but if you can't get your data source add a real delimiter into your file, I'm afraid you'll have to go through this.</description>
      <pubDate>Mon, 18 Sep 2006 07:14:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1293#M598</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2006-09-18T07:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: read free format external file into sas data sets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1294#M599</link>
      <description>Seems easy enough:&lt;BR /&gt;
&lt;BR /&gt;
Data Have ;&lt;BR /&gt;
Length City $ 20 ;&lt;BR /&gt;
Infile Cards DLM = ',' ;&lt;BR /&gt;
Input City Var1 Var2 ;&lt;BR /&gt;
Income = Input( Scan( City , -1 , ' ' ) , 8. ) ;&lt;BR /&gt;
City   = TranWrd( City , Put( Income , 8. -L ) , '' ) ;&lt;BR /&gt;
Cards ;&lt;BR /&gt;
NEW YORK 7,262,700&lt;BR /&gt;
LOS ANGELES 3,259,340&lt;BR /&gt;
CHICAGO 3,009,530&lt;BR /&gt;
;&lt;BR /&gt;
Run ;</description>
      <pubDate>Tue, 17 Oct 2006 16:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/read-free-format-external-file-into-sas-data-sets/m-p/1294#M599</guid>
      <dc:creator>TobyDunn_hotmail_com</dc:creator>
      <dc:date>2006-10-17T16:38:17Z</dc:date>
    </item>
  </channel>
</rss>

