<?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 Export to a .csv file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-a-csv-file/m-p/132338#M35993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I know how to export data from SAS using code and from the file menu but I want to know how to give a client the data with the formats. We use a .dat and .sas file to create the data. Now this dataset has to be converted to a .csv file with supporting documentation for formats.&lt;/P&gt;&lt;P&gt;I notice that the formats don't export.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Mar 2013 20:05:43 GMT</pubDate>
    <dc:creator>Xinxin</dc:creator>
    <dc:date>2013-03-11T20:05:43Z</dc:date>
    <item>
      <title>Export to a .csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-a-csv-file/m-p/132338#M35993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I know how to export data from SAS using code and from the file menu but I want to know how to give a client the data with the formats. We use a .dat and .sas file to create the data. Now this dataset has to be converted to a .csv file with supporting documentation for formats.&lt;/P&gt;&lt;P&gt;I notice that the formats don't export.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 20:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-a-csv-file/m-p/132338#M35993</guid>
      <dc:creator>Xinxin</dc:creator>
      <dc:date>2013-03-11T20:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Export to a .csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-a-csv-file/m-p/132339#M35994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One always available option is to fall back on a data step and write the file manually.&amp;nbsp; Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;file fn (...not sure what other parameters to put here in your specific case);&lt;/P&gt;&lt;P&gt;ln=catx(',',put(col1,col1fmt),put(col2,col2fmt).....);&lt;/P&gt;&lt;P&gt;put ln;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 21:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-a-csv-file/m-p/132339#M35994</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-03-11T21:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export to a .csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-a-csv-file/m-p/132340#M35995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AS supporting documentation for formats, you could join a file created like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;data _null_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;set sashelp.vcolumn(where=(libname="SASHELP" and memname="CARS"));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;file "carsMetaFile.csv" dsd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;put name label format;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt; font-family: calibri, verdana, arial, sans-serif;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 21:29:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-a-csv-file/m-p/132340#M35995</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-03-11T21:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export to a .csv file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-a-csv-file/m-p/132341#M35996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Send them three files. The CSV file with the data. The variable definitions (you can get it from PROC CONTENTS for example) with NAME, TYPE, LENGTH, FORMAT, LABEL.&amp;nbsp; The format definitions (you can get it from PROC FORMAT CNTLOUT=...) you will want at the minimum FMTNAME, FMTTYPE, START, LABEL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 00:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-a-csv-file/m-p/132341#M35996</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-03-12T00:38:18Z</dc:date>
    </item>
  </channel>
</rss>

