<?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 CSVAll : output files in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSVAll-output-files/m-p/22830#M3997</link>
    <description>Experts:&lt;BR /&gt;
Another beginner question. I'm writing the results of a proc freq and a proc print to a CSVAll file, as part of my learning exercise. Unlike the PDF, RTF destinations, I got two CSV files, instead of having both (proc freq and proc print) results in one CSV file. Did I do something wrong? If not, is there an option that we can use so the multiple proc step results can go to a single CSV file?&lt;BR /&gt;
Thank you!&lt;BR /&gt;
&lt;BR /&gt;
ods csvall file='Flight.csv';&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=sasuser.Europe;&lt;BR /&gt;
	tables dest*orig /crosslist;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=sasuser.Europe;&lt;BR /&gt;
	id Dest;&lt;BR /&gt;
	var flight revenue;&lt;BR /&gt;
run;&lt;BR /&gt;
ods csvall close;</description>
    <pubDate>Mon, 07 Mar 2011 03:02:25 GMT</pubDate>
    <dc:creator>mnew</dc:creator>
    <dc:date>2011-03-07T03:02:25Z</dc:date>
    <item>
      <title>CSVAll : output files</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSVAll-output-files/m-p/22830#M3997</link>
      <description>Experts:&lt;BR /&gt;
Another beginner question. I'm writing the results of a proc freq and a proc print to a CSVAll file, as part of my learning exercise. Unlike the PDF, RTF destinations, I got two CSV files, instead of having both (proc freq and proc print) results in one CSV file. Did I do something wrong? If not, is there an option that we can use so the multiple proc step results can go to a single CSV file?&lt;BR /&gt;
Thank you!&lt;BR /&gt;
&lt;BR /&gt;
ods csvall file='Flight.csv';&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=sasuser.Europe;&lt;BR /&gt;
	tables dest*orig /crosslist;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=sasuser.Europe;&lt;BR /&gt;
	id Dest;&lt;BR /&gt;
	var flight revenue;&lt;BR /&gt;
run;&lt;BR /&gt;
ods csvall close;</description>
      <pubDate>Mon, 07 Mar 2011 03:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSVAll-output-files/m-p/22830#M3997</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2011-03-07T03:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: CSVAll : output files</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSVAll-output-files/m-p/22831#M3998</link>
      <description>I am curious that I run your code and get only one csv file.&lt;BR /&gt;
What release is your sas?&lt;BR /&gt;
Or can use an option.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods csvall file='c:\Flight.csv' newfile=none;&lt;BR /&gt;
&lt;BR /&gt;
proc freq data=sashelp.class;&lt;BR /&gt;
tables sex*age /crosslist;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
id name;&lt;BR /&gt;
var sex age;&lt;BR /&gt;
run;&lt;BR /&gt;
ods csvall close; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 07 Mar 2011 05:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSVAll-output-files/m-p/22831#M3998</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-07T05:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: CSVAll : output files</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSVAll-output-files/m-p/22832#M3999</link>
      <description>Thanks! Your solution works great.&lt;BR /&gt;
I have to apologize that I pasted in the wrong code yesterday. There were titles and footnotes in the code, which might be the reason.&lt;BR /&gt;
&lt;BR /&gt;
Ods csvall file='Flight.csv';&lt;BR /&gt;
Title 'Frequency by destination and origin';&lt;BR /&gt;
Footnote 'Update needed';&lt;BR /&gt;
&lt;BR /&gt;
Proc freq data=sasuser.Europe;&lt;BR /&gt;
	tables dest*orig /crosslist;&lt;BR /&gt;
Run;&lt;BR /&gt;
&lt;BR /&gt;
Title 'Details';&lt;BR /&gt;
Footnote 'Listed by destination';&lt;BR /&gt;
&lt;BR /&gt;
Proc print data=sasuser.Europe;&lt;BR /&gt;
	id Dest;&lt;BR /&gt;
	var flight revenue;&lt;BR /&gt;
Run;&lt;BR /&gt;
Ods csvall close;</description>
      <pubDate>Tue, 08 Mar 2011 02:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/CSVAll-output-files/m-p/22832#M3999</guid>
      <dc:creator>mnew</dc:creator>
      <dc:date>2011-03-08T02:32:01Z</dc:date>
    </item>
  </channel>
</rss>

