<?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: Export large dataset to CSV in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158096#M11889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running stored process report. I am able to export/import the package into local C drive&amp;nbsp; from/to DI, Also have licence &lt;/P&gt;&lt;P&gt;SAS/ACCESS Interface to PC Files. Any way to map to user local machine who ever accessing the stored process report&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 00:10:41 GMT</pubDate>
    <dc:creator>sunilreddy</dc:creator>
    <dc:date>2014-05-14T00:10:41Z</dc:date>
    <item>
      <title>Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158085#M11878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to export Large dataset(upto 1 million records) into CSV file directly instead of saving into local system, but exporting CSV file is taking around 30 mins time to extract into CSV file itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ProcessBody;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;rc= stpsrv_header('Content-type', 'application/vnd.ms-excel');&lt;/P&gt;&lt;P&gt;rc= stpsrv_header('Content-disposition', 'attachment;&lt;/P&gt;&lt;P&gt;filename=&amp;nbsp; Report1.csv');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%let _ODSDEST=TAGSETS.csvall;&lt;/P&gt;&lt;P&gt;%stpbegin;&lt;/P&gt;&lt;P&gt;ods tagsets.csvall options(sheet_name="Report1");&lt;/P&gt;&lt;P&gt;Proc Print data=Report1 noobs width=full style(data)={background=white};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format COL1 COL2 yymmd9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var COL1 COL2 COL3 COL4;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods tagsets.csvall close;&lt;/P&gt;&lt;P&gt;%stpend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway to reduce the exporting time. Your help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 20:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158085#M11878</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2014-05-13T20:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158086#M11879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect we are missing part of the puzzle since you have the 'Content type' stuff. Which means you're wanting something besides plain vanilla CSV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 20:40:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158086#M11879</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-05-13T20:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158087#M11880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by "directly"?&lt;/P&gt;&lt;P&gt;Also, even if you can use tagstes/ods for this stuff, my gut feeling is that there might be more efficient and equally easy/easier ways, like PROC EXPORT or a simple data step.&lt;/P&gt;&lt;P&gt;What is the purpose of this export?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 20:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158087#M11880</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-05-13T20:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158088#M11881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing you're running this through WRS?&lt;/P&gt;&lt;P&gt;Then its probably a bit of network issue as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you create the file and then ftp it somewhere?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 20:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158088#M11881</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-13T20:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158089#M11882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running it thru stored process, I want to print SAS dataset to CSV file. I assume Proc export will work only by saving the file, but i dont want to use ftp. I am using plain csv file format to print the sas dataset for 1 million records. Can u suggest me an efficient way to extract into CSV file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 21:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158089#M11882</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2014-05-13T21:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158090#M11883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have closed the Listing destination but is the HTML destination also open? That will eat a lot of time building an HTML table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 22:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158090#M11883</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-05-13T22:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158091#M11884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ballardw,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am closing Listing destination before opened that. I modified original description.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 22:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158091#M11884</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2014-05-13T22:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158092#M11885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found using ODS to create a large CSV file took a LOT longer than using proc export or a data step with a file statement.&amp;nbsp;&amp;nbsp; I can't remember how big my file was, but it reduced from approximately 10 minutes to seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 22:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158092#M11885</guid>
      <dc:creator>tammy_dezilva</dc:creator>
      <dc:date>2014-05-13T22:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158093#M11886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had the same experience as Tammy. ODS CSV is very resource intensive for big files. Using PROC EXPORT or DATA step is way faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also think of it another way - would you normally PROC PRINT a million row report? The overheads in doing so are much higher compared to a DATA step (PROC EXPORT CSV writes a DATA step behind the scenes).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 22:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158093#M11886</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-05-13T22:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158094#M11887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Unix has installed on server. How can i export into local machine(C drive) as its pointing automatically to unix path Filename=/opt/app/SAS/config/Lev1/SASApp/C:\Data\class.csv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i've specified below&lt;/P&gt;&lt;P&gt;proc export data=&amp;amp;_output.&lt;/P&gt;&lt;P&gt;outfile="C:\Data\class.csv " dbms=csv;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i've specified &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 23:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158094#M11887</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2014-05-13T23:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158095#M11888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you running SAS jobs on your Unix server? From EG or SAS on your desktop or by remotely logging in to your Unix server and then running a Unix SAS session?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously your Unix server knows nothing about your PC C: drive. But if you are using EG or SAS on your desktop both have the capability of downloading server files (amongst other options).&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 00:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158095#M11888</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-05-14T00:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158096#M11889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running stored process report. I am able to export/import the package into local C drive&amp;nbsp; from/to DI, Also have licence &lt;/P&gt;&lt;P&gt;SAS/ACCESS Interface to PC Files. Any way to map to user local machine who ever accessing the stored process report&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 00:10:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158096#M11889</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2014-05-14T00:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158097#M11890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case a better option would be to get your IT people to set up a common file server folder for this report that is accessible from both your Unix server and your PCs - you should then be able to refer to it using a UNC like &lt;A href="https://communities.sas.com/"&gt;\\FileServer\folder1\folder2\MyFile.csv&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 02:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158097#M11890</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-05-14T02:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158098#M11891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have ssh access to the server? If yes, use a tool like WinSCP to copy the files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 06:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158098#M11891</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-05-14T06:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158099#M11892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error on the Unix server (=/opt/app/SAS/config/Lev1/SASApp/C:\Data\class.csv) is a known one. &lt;A href="http://support.sas.com/kb/50/345.html" title="http://support.sas.com/kb/50/345.html"&gt;50345 - Changing the current working directory for the SAS® Workspace Server&lt;/A&gt;.&lt;BR /&gt;Your It support is needed for that. They are also needed with a fully qualified name or offering direct access to some location by your users. Hope they are cooperative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seeing just your question I was not able to see a cause. As others pointed to the Slow behavior of ODS CVS, that is an opening to research the data-step approach.&lt;BR /&gt;The datastep is often fast. The only thing is you need to create a HTML-table writing to your web-server. The webserver can be accessed using the "_webout" fileref. &lt;BR /&gt;The html table output must be codes. It is something like &lt;A href="http://support.sas.com/documentation/cdl/en/stpug/62758/HTML/default/viewer.htm#datapass.htm" title="http://support.sas.com/documentation/cdl/en/stpug/62758/HTML/default/viewer.htm#datapass.htm"&gt;SAS(R) 9.3 Stored Processes: Developer's Guide&lt;/A&gt; (Chaining Stored Processes)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would prefer the users letting have access to the server (Winscp / ssh). Or possible Eguide as it is having FTP included.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 07:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158099#M11892</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-14T07:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export large dataset to CSV</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158100#M11893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; In addition to all of the other suggestions, I have a different one. When you are using %stpbegin, you do NOT need to repeat your ODS invocation statements:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;%let _ODSDEST=TAGSETS.csvall;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;%stpbegin;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.csvall options(sheet_name="Report1");&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;Proc Print data=Report1 noobs width=full style(data)={background=white};&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format COL1 COL2 yymmd9.;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; var COL1 COL2 COL3 COL4;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.csvall close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;%stpend;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; In addition, your invocation statement is unnecessary because there is no "sheet_name" suboption for ODS CSV or ODS CSVALL, so your "extra" statement will have no impact on your output.&amp;nbsp; So, aside from all the other issues, you are doing something that is not possible with the CSV destination.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;cynthia&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 13:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Export-large-dataset-to-CSV/m-p/158100#M11893</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-05-14T13:52:13Z</dc:date>
    </item>
  </channel>
</rss>

