<?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 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66486#M18995</link>
    <description>Is there any reasons 'putnames' wouldn't work? &lt;BR /&gt;
&lt;BR /&gt;
proc export data = rwork.Vehicle_Opt&lt;BR /&gt;
			outfile = '\\int\folder\name.csv'&lt;BR /&gt;
			dbms = csv REPLACE;&lt;BR /&gt;
			putnames=no;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I've tried that previously but i keep getting the ever so familiar 'Statement is not valid or out of order.'</description>
    <pubDate>Mon, 31 Jan 2011 00:34:05 GMT</pubDate>
    <dc:creator>SamT</dc:creator>
    <dc:date>2011-01-31T00:34:05Z</dc:date>
    <item>
      <title>Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66484#M18993</link>
      <description>Hey, &lt;BR /&gt;
&lt;BR /&gt;
Quick question. I need to export my data sets without variable names, can you use something like firstobs = 2 like on Proc Import? Or is there a global option for it? &lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Sam</description>
      <pubDate>Fri, 28 Jan 2011 01:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66484#M18993</guid>
      <dc:creator>SamT</dc:creator>
      <dc:date>2011-01-28T01:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66485#M18994</link>
      <description>In the first Page of support.sas.com ,You can find answer.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/41/735.html" target="_blank"&gt;http://support.sas.com/kb/41/735.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If your export file is xls .use&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc export data=sashelp.class&lt;BR /&gt;
               outfile='c:\temp\classnoheaders.xls'&lt;BR /&gt;
     dbms=xls replace;&lt;BR /&gt;
     putnames=no;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 28 Jan 2011 04:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66485#M18994</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-01-28T04:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66486#M18995</link>
      <description>Is there any reasons 'putnames' wouldn't work? &lt;BR /&gt;
&lt;BR /&gt;
proc export data = rwork.Vehicle_Opt&lt;BR /&gt;
			outfile = '\\int\folder\name.csv'&lt;BR /&gt;
			dbms = csv REPLACE;&lt;BR /&gt;
			putnames=no;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I've tried that previously but i keep getting the ever so familiar 'Statement is not valid or out of order.'</description>
      <pubDate>Mon, 31 Jan 2011 00:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66486#M18995</guid>
      <dc:creator>SamT</dc:creator>
      <dc:date>2011-01-31T00:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66487#M18996</link>
      <description>&amp;gt; Is there any reasons 'putnames' wouldn't work? &lt;BR /&gt;
&amp;gt; proc export data = rwork.Vehicle_Opt&lt;BR /&gt;
&amp;gt; 			outfile = '\\int\folder\name.csv'&lt;BR /&gt;
&amp;gt; 			dbms = csv REPLACE;&lt;BR /&gt;
&amp;gt; 			putnames=no;&lt;BR /&gt;
&amp;gt; run;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I've tried that previously but i keep getting the ever so familiar 'Statement is not valid or out of order.'&lt;BR /&gt;
&lt;BR /&gt;
on the link provided by "Ksharp" it says the feature works in SAS version 9.2&lt;BR /&gt;
"&lt;I&gt;Beginning in SAS 9.2, you can use the the PUTNAMES=&lt;/I&gt; "&lt;BR /&gt;
As your version doesn't support it, what version of SAS are you running?&lt;BR /&gt;
If you need data without headers and you cannot install the latest release, here is an alternative : the 5 lines of code&lt;BR /&gt;
data _null_ ;&lt;BR /&gt;
set rwork.Vehicle_Opt ;&lt;BR /&gt;
file  '\\int\folder\name.csv' dsd lrecl= 10000 ;&lt;BR /&gt;
put (_all_)(:) ;&lt;BR /&gt;
run;&lt;BR /&gt;
That put statement directs SAS to put all columns in ":" formatting (remove leading and trailing blanks from columns when placed in the output),  the "DSD" option directs that the columns should be separated by commas (with quoting of any data values containing commas), and that LRECL= provides more than the default 256 width for the output lines&lt;BR /&gt;
&lt;BR /&gt;
That should work in any release since SAS8.&lt;BR /&gt;
It is the ultimate CSV delivery process. imho&lt;BR /&gt;
peterC</description>
      <pubDate>Mon, 31 Jan 2011 09:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66487#M18996</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-01-31T09:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66488#M18997</link>
      <description>Thanks mate works a treat. &lt;BR /&gt;
&lt;BR /&gt;
I'm running 9.1 ... Thought I was on .2 but I guess not haha.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again Peter.</description>
      <pubDate>Tue, 01 Feb 2011 04:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export/m-p/66488#M18997</guid>
      <dc:creator>SamT</dc:creator>
      <dc:date>2011-02-01T04:33:48Z</dc:date>
    </item>
  </channel>
</rss>

