<?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 Proc export firstobs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34935#M8546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the proc below exports the DS starting from the first observation, what's wrong with the firstobs=1 option?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data= xxx (firstobs=2)&lt;/P&gt;&lt;P&gt;outfile=C:\yyy&lt;/P&gt;&lt;P&gt;dbms=dlm;&lt;/P&gt;&lt;P&gt;delimiter=" ";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2011 10:08:23 GMT</pubDate>
    <dc:creator>HDSimo</dc:creator>
    <dc:date>2011-10-26T10:08:23Z</dc:date>
    <item>
      <title>Proc export firstobs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34935#M8546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the proc below exports the DS starting from the first observation, what's wrong with the firstobs=1 option?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data= xxx (firstobs=2)&lt;/P&gt;&lt;P&gt;outfile=C:\yyy&lt;/P&gt;&lt;P&gt;dbms=dlm;&lt;/P&gt;&lt;P&gt;delimiter=" ";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 10:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34935#M8546</guid>
      <dc:creator>HDSimo</dc:creator>
      <dc:date>2011-10-26T10:08:23Z</dc:date>
    </item>
    <item>
      <title>Proc export firstobs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34936#M8547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; ﻿﻿﻿﻿What's wrong with the &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;firstobs=2&lt;/STRONG&gt;&lt;/SPAN&gt; option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 10:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34936#M8547</guid>
      <dc:creator>HDSimo</dc:creator>
      <dc:date>2011-10-26T10:10:08Z</dc:date>
    </item>
    <item>
      <title>Proc export firstobs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34937#M8548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The code works fine for me, assuming you want to skip the first row of your dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 11:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34937#M8548</guid>
      <dc:creator>smygarn</dc:creator>
      <dc:date>2011-10-26T11:36:50Z</dc:date>
    </item>
    <item>
      <title>Proc export firstobs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34938#M8549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi smygarn,&lt;/P&gt;&lt;P&gt;yes I'd skip the first row. &lt;/P&gt;&lt;P&gt;I don't understand why it doesn't work. This is my alternative:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;file 'C:\yyy' delimiter=' ' DSD DROPOVER lrecl=32767;&lt;/P&gt;&lt;P&gt;set xxx;&lt;/P&gt;&lt;P&gt;format var1 $13. ;&lt;/P&gt;&lt;P&gt;format var2 $3. ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put var1 $ @;&lt;/P&gt;&lt;P&gt;put var2 $ ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 11:57:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34938#M8549</guid>
      <dc:creator>HDSimo</dc:creator>
      <dc:date>2011-10-26T11:57:43Z</dc:date>
    </item>
    <item>
      <title>Proc export firstobs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34939#M8550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you trying to accomplish?&amp;nbsp; Are you just trying NOT to include the variable names?&amp;nbsp; If so, use the option putnames=no.&amp;nbsp; Take a look at: &lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003103525.htm"&gt;http://support.sas.com/documentation/cdl/en/acpcref/63184/HTML/default/viewer.htm#a003103525.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 12:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-firstobs/m-p/34939#M8550</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-26T12:40:16Z</dc:date>
    </item>
  </channel>
</rss>

