<?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 as a Step in project using code not wizard in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152325#M11952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;L,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a combination of code and a download step to export the content to a location on the SAS server, and then transfer it to your local drive.&amp;nbsp; This technique requires the use of the Copy Files custom task.&amp;nbsp; See guidance in this blog post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/" title="http://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/"&gt;Export and download any file from SAS Enterprise Guide &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at OPTIONS NODATE and NONUMBER and PAGESIZE=MAX to control some header/layout details.&amp;nbsp; See &lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001792040.htm"&gt;this topic for more information&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 17:01:46 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2014-12-16T17:01:46Z</dc:date>
    <item>
      <title>Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152318#M11945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to write code similar to what the "export as a step in project" wizard does in Enterprise Guide. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the code to create the csv file with the delimiter ';'&lt;/P&gt;&lt;P&gt;proc export data=home.data&lt;/P&gt;&lt;P&gt;outfile='D:/testing/test.csv'&lt;/P&gt;&lt;P&gt;dmbs=csv replace;&lt;/P&gt;&lt;P&gt;delimiter=';' ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like is to print the csv file within Enterprise Guide not just save it on the D:\ drive.&amp;nbsp; Similar to what the wizard does in "export as a step in project".&amp;nbsp; I would use the wizard, but I do not have the option to select a semi-colon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I use proc import at this point?&amp;nbsp; Thanks for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 15:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152318#M11945</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2014-12-16T15:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152319#M11946</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 don't really use EG so can't comment on the "step" part.&amp;nbsp; I would say however that using a ";" delimiter means that the file is not a CSV (Comma Separated Variable file), so do try not to confuse the two.&amp;nbsp; You should not need dbms=csv:&lt;/P&gt;&lt;P&gt;proc export data=home.data outfile='D:/testing/test.dlm' replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delimiter=';' ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, not having access to the wizard, what do you mean print the file?&amp;nbsp; Do you mean actually output it to paper? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 15:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152319#M11946</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-12-16T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152320#M11947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;EG export wizard creates the text file and then places it on the process explorer so it is a physical file you can click and open.&amp;nbsp; &lt;BR /&gt;(I will remove the csv portion, thanks)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 16:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152320#M11947</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2014-12-16T16:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152321#M11948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can avoid creating the file and using PROC EXPORT by directing the delimited content to a temporary ODS file, which EG will then open to show you, sort of like the wizard does.&amp;nbsp; You are still writing the file, regardless of the method used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options nodate nonumber pagesize=max;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods listing;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file print dsd dlm=';';&lt;/P&gt;&lt;P&gt;set sashelp.class;&lt;/P&gt;&lt;P&gt;put (_all_) (:);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 16:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152321#M11948</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-12-16T16:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152322#M11949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I print it to be a text file?&amp;nbsp; It is printing it as an ODS listing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 16:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152322#M11949</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2014-12-16T16:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152323#M11950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ODS listing is, pretty much, a plain text file.&amp;nbsp; If you want it to be automatically displayed by EG, it is the only option I can think of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 16:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152323#M11950</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-12-16T16:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152324#M11951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize, I figured how to then get the ods listing as a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have one more question, the ods listing is putting a title before the data (ex: loaddata.sas).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loaddata.sas &amp;lt;---- title assigned I want removed&lt;/P&gt;&lt;P&gt;1;tere;kgm;1000 &amp;lt;---- start of data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an option to write to remove this title?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 16:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152324#M11951</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2014-12-16T16:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152325#M11952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;L,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a combination of code and a download step to export the content to a location on the SAS server, and then transfer it to your local drive.&amp;nbsp; This technique requires the use of the Copy Files custom task.&amp;nbsp; See guidance in this blog post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/" title="http://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/"&gt;Export and download any file from SAS Enterprise Guide &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at OPTIONS NODATE and NONUMBER and PAGESIZE=MAX to control some header/layout details.&amp;nbsp; See &lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001792040.htm"&gt;this topic for more information&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 17:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152325#M11952</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-12-16T17:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152326#M11953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added notitles to the file statement.&lt;/P&gt;&lt;P&gt;Thanks for your help everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 17:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152326#M11953</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2014-12-16T17:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152327#M11954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An unfortunate side effect of this method (using the file statement with print destination) is that once a title is set, you are always going to start printing data on the second line of the text file, even when the title is null'd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title 'loaddate.sas';&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;options nodate nonumber pagesize=max;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;filename x "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;D:/testing/test.csv&lt;/SPAN&gt;" termstr=crlf;&lt;/P&gt;&lt;P&gt;ods listing file=x;&lt;/P&gt;&lt;P&gt;title; *null title;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;file print dsd dlm=';';&lt;/P&gt;&lt;P&gt;set sashelp.class;&lt;/P&gt;&lt;P&gt;put (_all_) (:);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 17:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152327#M11954</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-12-16T17:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export as a Step in project using code not wizard</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152328#M11955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding notitles will work to suppress the title as well.&amp;nbsp; But, it still does not circumvent starting to print data on the second line of the text file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 17:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-as-a-Step-in-project-using-code-not-wizard/m-p/152328#M11955</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-12-16T17:22:09Z</dc:date>
    </item>
  </channel>
</rss>

