<?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 Generating CSV files from Enterprise Guide without code in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generating-CSV-files-from-Enterprise-Guide-without-code/m-p/3741#M1207</link>
    <description>Can anyone tell me how should I convert my dataset to a csv file without using a code.Since it is my part of my process flow that is the output of my process flow i.e dataset i have to save it as csv file.This whole process i have to create a stored process.&lt;BR /&gt;
&lt;BR /&gt;
I have tried the function in EG i.e. right click on that dataset and export but it is there for that session and when i create a stored process it tells me that we can`t generate code for export task.&lt;BR /&gt;
So can anyone help me with this</description>
    <pubDate>Thu, 05 Jul 2007 09:40:09 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-07-05T09:40:09Z</dc:date>
    <item>
      <title>Generating CSV files from Enterprise Guide without code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generating-CSV-files-from-Enterprise-Guide-without-code/m-p/3741#M1207</link>
      <description>Can anyone tell me how should I convert my dataset to a csv file without using a code.Since it is my part of my process flow that is the output of my process flow i.e dataset i have to save it as csv file.This whole process i have to create a stored process.&lt;BR /&gt;
&lt;BR /&gt;
I have tried the function in EG i.e. right click on that dataset and export but it is there for that session and when i create a stored process it tells me that we can`t generate code for export task.&lt;BR /&gt;
So can anyone help me with this</description>
      <pubDate>Thu, 05 Jul 2007 09:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generating-CSV-files-from-Enterprise-Guide-without-code/m-p/3741#M1207</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-05T09:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Generating CSV files from Enterprise Guide without code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generating-CSV-files-from-Enterprise-Guide-without-code/m-p/3742#M1208</link>
      <description>Sunil:&lt;BR /&gt;
  Almost everything you do in your EG project generates code. So, I'm not sure about the "without code" part of your question -- and whether that's even possible. For example, when you create a LIST data task, EG generates PROC PRINT code behind the scenes. when you create a One-Way Frequency List, EG generates PROC FREQ code behind the scenes.&lt;BR /&gt;
  &lt;BR /&gt;
  You should be able to code either a PROC EXPORT or an ODS CSV code block in a code node window in your project to do the export:&lt;BR /&gt;
[pre]&lt;BR /&gt;
filename csvout 'c:\temp\class_exp.csv';&lt;BR /&gt;
proc export data=sashelp.class &lt;BR /&gt;
            outfile= csvout &lt;BR /&gt;
            dbms=dlm replace;&lt;BR /&gt;
     delimiter=','; &lt;BR /&gt;
run;&lt;BR /&gt;
  &lt;BR /&gt;
filename csvods 'c:\temp\class_ods.csv';&lt;BR /&gt;
ods csv file=csvods;&lt;BR /&gt;
  proc print data=sashelp.class noobs;&lt;BR /&gt;
    var name height age sex ;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods csv close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
The difficulty will come in when you go to make your stored process, since the workspace server and stored process server generally do NOT have visibility of the user's C drive when they execute a stored process.&lt;BR /&gt;
  &lt;BR /&gt;
One possible approach is to have your stored process do a PROC PRINT on the dataset and then the end-user could access the file using the SAS Add-in for Microsoft Office -- Excel has the option to return stored process results AS either HTML, SASREPORT or CSV -- so your stored process would do a simple PROC PRINT and if they wanted CSV, then you could give them instructions how to change the choice under &lt;BR /&gt;
SAS --&amp;gt; Options to return CSV results from the stored process. For example, this stored process:&lt;BR /&gt;
[pre]&lt;BR /&gt;
*ProcessBody;&lt;BR /&gt;
%stpbegin;&lt;BR /&gt;
  proc print data=sashelp.class noobs;&lt;BR /&gt;
    var name age height sex;&lt;BR /&gt;
  run;&lt;BR /&gt;
%stpend;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
could be executed inside Web Report Studio and they would see a listing report in Web Report Studio. On the other hand, if they were working inside Excel AND they had the SAS Add-in for Microsoft Office installed, they could choose to run this stored process and just have the results come back to them as CSV.&lt;BR /&gt;
 &lt;BR /&gt;
Another approach is to return the stored process results as a package and put the CSV file into the package. &lt;BR /&gt;
 &lt;BR /&gt;
If you are using the Stored Process Web Application, another alternative is to write your stored process to return CSV results and send a content-type header that would alert the browser to launch Excel when the stored process results were sent back to the requesting user.&lt;BR /&gt;
 &lt;BR /&gt;
Tech Support can help you figure out the best way to return your results, depending on your particular configuration and how you planned to execute the stored process.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 05 Jul 2007 19:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generating-CSV-files-from-Enterprise-Guide-without-code/m-p/3742#M1208</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-07-05T19:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generating CSV files from Enterprise Guide without code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generating-CSV-files-from-Enterprise-Guide-without-code/m-p/3743#M1209</link>
      <description>can you tell me where can i change the settings for csv file since i cant see any option of CSV file in EG TOOLS--&amp;gt; Options</description>
      <pubDate>Mon, 09 Jul 2007 09:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generating-CSV-files-from-Enterprise-Guide-without-code/m-p/3743#M1209</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-09T09:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Generating CSV files from Enterprise Guide without code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generating-CSV-files-from-Enterprise-Guide-without-code/m-p/3744#M1210</link>
      <description>Sunil:&lt;BR /&gt;
  Sorry, my bad, I was not clear in my explanation. EG does NOT have the option to return CSV from a toolbar/menu choice. That option only exists within Excel under the SAS Add-in for Microsoft Office -- by clicking &lt;BR /&gt;
SAS --&amp;gt; Options --&amp;gt; and then looking for either the Results tab or the Stored Process tab to change the result format to CSV(I'm not at a computer with the BI image right now, so I can't check).&lt;BR /&gt;
 &lt;BR /&gt;
EG, of course, returns the MAIN ODS result types -- HTML, RTF, PDF and SASReport XML via a menu choice. But, there is not a Tools--&amp;gt; Options choice to return CSV. To create a CSV file, you would have to use code within a code node. However, if you submitted the code shown in my previous post, from within EG, you would essentially see a "Notepad-type" window with the CSV results.&lt;BR /&gt;
  &lt;BR /&gt;
The point that I was trying to make is that having EG make CSV output as a menu choice just doesn't make a lot of sense, when you can do a direct export of results to Excel with a Right-Mouse click or can run a stored process in Excel whose results can be returned as CSV. (This same logic applies to Microsoft Word -- if you look at the menu choices for result types in Word, you will not find CSV listed -- that's because Word doesn't really -do- anything with a CSV file. There's no menu choice in Excel for returning RTF results, because Excel doesn't know what to do with RTF results.)&lt;BR /&gt;
 &lt;BR /&gt;
So, there's no menu choice in Excel for automatic creation of CSV files. If you need to create a CSV file in a project, then your choices are a PROC EXPORT code step to export a SAS data set to CSV format or have an ODS CSV code step to return procedure results as a CSV file. &lt;BR /&gt;
 &lt;BR /&gt;
I hope this explanation makes my previous post clearer.&lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 10 Jul 2007 01:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generating-CSV-files-from-Enterprise-Guide-without-code/m-p/3744#M1210</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-07-10T01:48:01Z</dc:date>
    </item>
  </channel>
</rss>

