<?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: proc export and then proc import-header raw is in raw data instead of in headers row in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-and-then-proc-import-header-raw-is-in-raw-data/m-p/650981#M195251</link>
    <description>&lt;P&gt;See &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n1rill4udj0tfun1fvce3j401plo.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;INFILE Statement&lt;/A&gt;, FIRSTOBS option.&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 06:18:51 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-05-27T06:18:51Z</dc:date>
    <item>
      <title>proc export and then proc import-header raw is in raw data instead of in headers row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-and-then-proc-import-header-raw-is-in-raw-data/m-p/650980#M195250</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I export a big SAS data set into txt file.&lt;/P&gt;
&lt;P&gt;The txt file is with columns headers.&lt;/P&gt;
&lt;P&gt;In the future I need to use this txt file and then I need to import it into SAS.&lt;/P&gt;
&lt;P&gt;The problem is that when Iimport it then the header columns is in the rows of data instead of in the headers row.&lt;/P&gt;
&lt;P&gt;What is the way to solve it?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=tbl1
outfile="/path/Revenue.txt"
dbms=tab replace;
run;


/*Import into SAS when need it*/
data Revenue; 
infile   "/path/Revenue.txt"
        dlm='09'X dsd truncover;
input ID
     branch
	  partition1 :$400.
	 partition2 :$400.
	  partition3 :$50.
	  SOURCE :$50.
 	  revenue	;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 May 2020 06:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-and-then-proc-import-header-raw-is-in-raw-data/m-p/650980#M195250</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-05-27T06:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc export and then proc import-header raw is in raw data instead of in headers row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-and-then-proc-import-header-raw-is-in-raw-data/m-p/650981#M195251</link>
      <description>&lt;P&gt;See &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n1rill4udj0tfun1fvce3j401plo.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;INFILE Statement&lt;/A&gt;, FIRSTOBS option.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 06:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-and-then-proc-import-header-raw-is-in-raw-data/m-p/650981#M195251</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-27T06:18:51Z</dc:date>
    </item>
  </channel>
</rss>

