<?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: Exporting data to excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124799#M260068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do your text fields have commas in them?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2015 00:57:29 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-01-06T00:57:29Z</dc:date>
    <item>
      <title>Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124777#M260046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset with &amp;gt;2000 variables and ~550 observations. I am cleaning the data in SAS and creating SAS permanent data sets but would like to export to excel as well for people who don't use sas. Is there an easy way to do this with such a large data set? I have tried some methods posted online but none seem to work properly. Ideally I would like to export a CSV file however, there are comment fields in my data that contain commas that cause the data to get separated incorrectly in CSV files. Any help would be greatly appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 19:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124777#M260046</guid>
      <dc:creator>sara122</dc:creator>
      <dc:date>2013-10-25T19:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124778#M260047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Export as Quoted CSV instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 19:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124778#M260047</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-25T19:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124779#M260048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use DSD option when you write out your CSV, it will properly enclose your data in quotes when needed so that other properly configured software (like Excel) can read it in properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;set whatever;&lt;/P&gt;&lt;P&gt;file "blah.csv" dlm=',' dsd;&lt;/P&gt;&lt;P&gt;put blah $ blah $ blah $;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 19:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124779#M260048</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2013-10-25T19:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124780#M260049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thought. Consider going to Access then to Excel. This way the db structure/formats can be checked in Access and then Excel is more likely to not have import issues with the file from Access.&lt;/P&gt;&lt;P&gt;If its a one time thing this is a good workaround, if it continuous not as much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124780#M260049</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-25T20:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124781#M260050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do I use for&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;put blah $ blah $ blah $;&lt;/SPAN&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124781#M260050</guid>
      <dc:creator>sara122</dc:creator>
      <dc:date>2013-10-25T20:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124782#M260051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is something I have to do on a weekly basis so I don't think this will work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124782#M260051</guid>
      <dc:creator>sara122</dc:creator>
      <dc:date>2013-10-25T20:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124783#M260052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sara, Did you get an answer to your question about what to put in place of blah, blah?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, you might be able to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file "c:\blah.csv" dlm=',' dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put (_all_) (+0);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124783#M260052</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-25T20:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124784#M260053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your variables.&amp;nbsp; Look up a basic SAS manual/tutorial for file output techniques, it'll cover this in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:31:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124784#M260053</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2013-10-25T20:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124785#M260054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't list all my variables ,there are more than 2000, that would be a huge set of&amp;nbsp; code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:46:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124785#M260054</guid>
      <dc:creator>sara122</dc:creator>
      <dc:date>2013-10-25T20:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124786#M260055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This exported something, but it was not correct. There were no variable names, and there were 16,000 observations but only about 100 variables. It also exported formatted values, and not the numeric values. Is there a way to fix this? Sorry for all the questions, I have been having issues trying to get the data properly exported for a while. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124786#M260055</guid>
      <dc:creator>sara122</dc:creator>
      <dc:date>2013-10-25T20:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124787#M260056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of SAS are you on and what version of Excel? And what bits 32/64?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:53:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124787#M260056</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-25T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124788#M260057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;9.3, 2010 and 64&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 20:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124788#M260057</guid>
      <dc:creator>sara122</dc:creator>
      <dc:date>2013-10-25T20:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124789#M260058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use either DDE or create an XML file using Tagsets.ExcelXP, both are fairly simple work arounds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="C:\temp\test.xml" style=journal;&lt;/P&gt;&lt;P&gt;proc print data= have;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 21:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124789#M260058</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-25T21:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124790#M260059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you need variable names, have you tried proc export?&amp;nbsp; If you license sas access for pc file formats you can accomplish the export to excel directly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 21:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124790#M260059</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-25T21:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124791#M260060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use PROC EXPORT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA= &lt;STRONG&gt;SASHELP.CLASS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTFILE= &lt;STRONG&gt;"~/temp/x.csv"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=CSV REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUTNAMES=YES;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your data lines are too long (by default it will handle lines up to 32767 characters long) or it is too slow then you can build your own.&lt;/P&gt;&lt;P&gt;One quick way is to just use PROC EXPORT to write the variable names and then use your own DATA _NULL_ to write the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA= &lt;STRONG&gt;SASHELP.CLASS &lt;SPAN style="color: #ff0000;"&gt;(OBS=0)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTFILE= &lt;STRONG&gt;"~/temp/x.csv"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=CSV REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUTNAMES=YES;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SET &lt;STRONG&gt;SASHELP.CLASS ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; FILE&amp;nbsp; &lt;STRONG&gt;"~/temp/x.csv" &lt;SPAN style="color: #ff0000;"&gt;MOD &lt;/SPAN&gt;&lt;/STRONG&gt;DSD DLM=',' LRECL=1000000 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PUT (_ALL_) (:) ;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 22:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124791#M260060</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-10-25T22:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124792#M260061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on your earlier comment that the output contained formatted values, when you actually need to output the raw data, I'd add a datastep before Tom's suggested code, namely:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data need;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format _all_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC EXPORT DATA= need&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTFILE= "c:\whatever.csv"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=CSV REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUTNAMES=YES;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 03:24:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124792#M260061</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-26T03:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124793#M260062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The more I think about your problem, I still think a simple data step would provide the easiest solution.&amp;nbsp; The three problems you found when I initially suggested it (namely, lrecl not being set, formated values being output, and the output not including variable names) are all easy to fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As such, I suggest your trying the following approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*create a format to use*/&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; value codes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 999='Yes';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;/*create a test data set*/&lt;/P&gt;&lt;P&gt;data whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain a1-a1000 (1000*"just some test stuff, i.e., meaningless filler");&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain b1-b1000 (1000*999);&lt;/P&gt;&lt;P&gt;&amp;nbsp; format b1-b1000 codes.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do _n_=1 to 500;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select '"'||trim(name)||'"'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; into :names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; separated by " ','"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname eq "WORK" and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memname eq "WHATEVER"&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file "c:\whatever.csv" dlm=',' dsd lrecl=200000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format _all_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _n_ eq 1 then put &amp;amp;names.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put (_all_) (+0);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 15:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124793#M260062</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-10-26T15:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124794#M260063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most easy way to drop tables to Excel would be using a libname. The best is using examples and a paper as the SAS docs are not very clear on this topic.&lt;/P&gt;&lt;P&gt;An already old paper doing this well&amp;nbsp; is: &lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" title="http://www2.sas.com/proceedings/sugi31/024-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/024-31.pdf&lt;/A&gt;&amp;nbsp; The dino-time is even older than this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2013 21:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124794#M260063</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-10-26T21:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124795#M260064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of creating a test data set? and what am I supposed to fill in for &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"just some test stuff, i.e., meaningless filler"? When I ran the code whatever I replaced it with became the value for all of my observations. I really appreciate all of the help!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 20:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124795#M260064</guid>
      <dc:creator>sara122</dc:creator>
      <dc:date>2013-10-28T20:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting data to excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124796#M260065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this code and it seemed to work, except that it still output formatted values. Do you have any suggestions for resolving this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 20:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-data-to-excel/m-p/124796#M260065</guid>
      <dc:creator>sara122</dc:creator>
      <dc:date>2013-10-28T20:23:48Z</dc:date>
    </item>
  </channel>
</rss>

