<?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: choosing the correct delimiter using proc import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/choosing-the-correct-delimiter-using-proc-import/m-p/293471#M61082</link>
    <description>&lt;P&gt;Since you have an infile and input statements to read then it should be relatively easy to use a file statement that looks similar to the infilr and turn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; input State $1-2 District $3-20 DistNum $21-35 SchName $36-53 ...&lt;/P&gt;
&lt;P&gt;into&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; put @1 State @3 District @21 Distnum &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78374"&gt;@21&lt;/a&gt; Distnum @36 SchName ....;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The @n tells SAS to put the variable starting at that column. Assuming you haven't done anything to drastically change lengths of the values then you shouldn't have any problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2016 15:43:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-08-23T15:43:24Z</dc:date>
    <item>
      <title>choosing the correct delimiter using proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/choosing-the-correct-delimiter-using-proc-import/m-p/293449#M61074</link>
      <description>&lt;P&gt;what delimiter should I use for importing this .txt file? &amp;nbsp;Here is the first obs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SCSchool District of******* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; W******* High &amp;nbsp; &amp;nbsp; 007&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 14:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/choosing-the-correct-delimiter-using-proc-import/m-p/293449#M61074</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-08-23T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: choosing the correct delimiter using proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/choosing-the-correct-delimiter-using-proc-import/m-p/293460#M61078</link>
      <description>&lt;P&gt;The input line you demostarted seems to be without a deleimiter.&lt;/P&gt;&lt;P&gt;Maybe the variables are fixed length. If it is - you need know at what position each variable starts.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 14:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/choosing-the-correct-delimiter-using-proc-import/m-p/293460#M61078</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-08-23T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: choosing the correct delimiter using proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/choosing-the-correct-delimiter-using-proc-import/m-p/293462#M61079</link>
      <description>&lt;P&gt;Good point. Actually, it is fixed width now that I think about it. I have a data file layout that I used to read it in using an INFILE statement. &amp;nbsp;(see a portion below) Essentially, my task is this: I need to output the file I cleaned up so that it matches the original dirty file. If it doesn't match it, I can't import the results to our data warehouse. &amp;nbsp;Maybe I need to rethink my whole strategy here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data access;&lt;BR /&gt;infile "G:\Departments\Research\test scores\ACCESS\&amp;amp;yr.\raw\SC3701_Summative_Stud_File.txt"&lt;BR /&gt;lrecl=32767 dsd missover;&lt;BR /&gt;input State $1-2 District $3-20 DistNum $21-35 SchName $36-53 ....;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 15:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/choosing-the-correct-delimiter-using-proc-import/m-p/293462#M61079</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-08-23T15:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: choosing the correct delimiter using proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/choosing-the-correct-delimiter-using-proc-import/m-p/293471#M61082</link>
      <description>&lt;P&gt;Since you have an infile and input statements to read then it should be relatively easy to use a file statement that looks similar to the infilr and turn&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; input State $1-2 District $3-20 DistNum $21-35 SchName $36-53 ...&lt;/P&gt;
&lt;P&gt;into&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; put @1 State @3 District @21 Distnum &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78374"&gt;@21&lt;/a&gt; Distnum @36 SchName ....;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The @n tells SAS to put the variable starting at that column. Assuming you haven't done anything to drastically change lengths of the values then you shouldn't have any problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 15:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/choosing-the-correct-delimiter-using-proc-import/m-p/293471#M61082</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-23T15:43:24Z</dc:date>
    </item>
  </channel>
</rss>

