<?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 txt in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377184#M24525</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154642"&gt;@egamorim&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am not exporting through code.&lt;BR /&gt;With the table open I'm going to Export &amp;gt;&amp;gt; Export Step in Project&lt;BR /&gt;I select the format, in case txt and end.&lt;/P&gt;
&lt;P&gt;When I do this procedure it is putting quotation marks at the beginning and end of each line.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is ALWAYS code in SAS. EG is just a code generator, and as soon as a node is run, you get a tab with the code that was sent to the workspace server.&lt;/P&gt;
&lt;P&gt;To be able to recreate your situation, we need&lt;/P&gt;
&lt;P&gt;- that code I mentioned (to make sure that our actions in EG generate the same code)&lt;/P&gt;
&lt;P&gt;- your dataset that you exported. Use the macro provided in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to convert your dataset to a data step, and post that here in a code window (6th or 7th icon above the posting window).&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 06:19:52 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-07-19T06:19:52Z</dc:date>
    <item>
      <title>Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377094#M24505</link>
      <description>&lt;P&gt;When I export a file in txt, at the beginning and end of each line appears "(quotes) how do I prevent this from happening?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 18:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377094#M24505</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-18T18:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377097#M24506</link>
      <description>&lt;P&gt;How are you exporting this? &amp;nbsp;Using EG menus or code? Try File-&amp;gt;Export-&amp;gt;Export [DATANAME], and select a CSV type.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 18:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377097#M24506</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-07-18T18:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377098#M24507</link>
      <description>&lt;P&gt;Post the code you're using.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 18:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377098#M24507</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-18T18:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377127#M24515</link>
      <description>&lt;P&gt;Não estou exportando através de código.&lt;BR /&gt;Com a tabela aberta estou indo em Export &amp;gt;&amp;gt; Export Step in Project&lt;BR /&gt;Seleciono o formato, no caso txt e fim.&lt;/P&gt;&lt;P&gt;Quando faço esse procedimento ele está colocando aspas no início e no fim de cada linha.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 20:28:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377127#M24515</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-18T20:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377128#M24516</link>
      <description>&lt;P&gt;I am not exporting through code.&lt;BR /&gt;With the table open I'm going to Export &amp;gt;&amp;gt; Export Step in Project&lt;BR /&gt;I select the format, in case txt and end.&lt;/P&gt;&lt;P&gt;When I do this procedure it is putting quotation marks at the beginning and end of each line.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 20:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377128#M24516</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-18T20:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377129#M24517</link>
      <description>&lt;P&gt;I need to export in txt&lt;BR /&gt;With the table open I'm going to Export &amp;gt;&amp;gt; Export Step in Project&lt;BR /&gt;I select the format, in case txt and end.&lt;/P&gt;&lt;P&gt;When I do this procedure it is putting quotation marks at the beginning and end of each line.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 20:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377129#M24517</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-18T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377133#M24519</link>
      <description>&lt;P&gt;What version of EG (listed in Help-&amp;gt;About)&amp;nbsp;are you using?&amp;nbsp; In newer versions of EG, only values that contain the delimiter will be wrapped in quotes when exported to text&amp;nbsp;(to avoid the ambiguity).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 20:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377133#M24519</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-07-18T20:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377135#M24521</link>
      <description>&lt;P&gt;version&amp;nbsp;5.1&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 20:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377135#M24521</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-18T20:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377184#M24525</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154642"&gt;@egamorim&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am not exporting through code.&lt;BR /&gt;With the table open I'm going to Export &amp;gt;&amp;gt; Export Step in Project&lt;BR /&gt;I select the format, in case txt and end.&lt;/P&gt;
&lt;P&gt;When I do this procedure it is putting quotation marks at the beginning and end of each line.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There is ALWAYS code in SAS. EG is just a code generator, and as soon as a node is run, you get a tab with the code that was sent to the workspace server.&lt;/P&gt;
&lt;P&gt;To be able to recreate your situation, we need&lt;/P&gt;
&lt;P&gt;- that code I mentioned (to make sure that our actions in EG generate the same code)&lt;/P&gt;
&lt;P&gt;- your dataset that you exported. Use the macro provided in&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to convert your dataset to a data step, and post that here in a code window (6th or 7th icon above the posting window).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 06:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377184#M24525</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-19T06:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377262#M24534</link>
      <description>&lt;P&gt;Actually, as much as I hate to correct my friend&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;, there is no SAS code for this step initated from "Export as a Step". &amp;nbsp;EG reads the data and uses local routines to generate a text file. &amp;nbsp;As Casey said, earlier versions of EG added unnecessary quotes -- this is corrected in EG 7.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can, however, use SAS code to achieve what you need. &amp;nbsp;PROC EXPORT, ODS CSV, and simple DATA step can all be used to generate text files from data. &amp;nbsp;Your challenge would then be to copy that data file from your SAS server to your local PC, and that's what the Copy Files task is good for. &amp;nbsp;Here's &lt;A href="http://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/" target="_self"&gt;a blog post that leads you through the steps&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 11:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377262#M24534</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-07-19T11:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377285#M24536</link>
      <description>&lt;P&gt;Yes, as mentioned by ChrisHemedinger, there is no code for the way I am doing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My table contains only 1 column called Mailing in text format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you code in code how can I export this table into text format?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377285#M24536</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-19T12:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377292#M24537</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154642"&gt;@egamorim&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Yes, as mentioned by ChrisHemedinger, there is no code for the way I am doing it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My table contains only 1 column called Mailing in text format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you code in code how can I export this table into text format?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's simple:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input email :$100.;
cards;
user.user@domain.com
another_user@some-domain.com
;
run;

data _null_;
file '$HOME/test.txt';
set have;
put email;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The file test.txt looks like that:&lt;/P&gt;
&lt;PRE&gt;user.user@domain.com
another_user@some-domain.com
&lt;/PRE&gt;
&lt;P&gt;As you can see, no quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 12:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377292#M24537</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-19T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377326#M24541</link>
      <description>&lt;P&gt;Okay, but it still did not work out.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am illustrating in the attached image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice that in EG the quotes do not appear, but in the yes txt.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14095iC0DB25B40CC91AA7/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="exemplo.jpg" title="exemplo.jpg" /&gt;</description>
      <pubDate>Wed, 19 Jul 2017 13:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377326#M24541</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-19T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377332#M24542</link>
      <description>&lt;P&gt;You are using the export task from EG instead of the code I gave you. Don't be surprised.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 14:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377332#M24542</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-19T14:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377342#M24544</link>
      <description>&lt;P&gt;Can I export txt to my local machine?&lt;BR /&gt;On my desktop?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 14:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377342#M24544</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-19T14:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377348#M24545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154642"&gt;@egamorim&lt;/a&gt;&amp;nbsp;- the way to do this is by using a SAS program node with code like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;provided, and then a Copy Files step. &amp;nbsp;In EG 5.1 you will need to add Copy Files to your environment; it's not built in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those steps &lt;A href="http://blogs.sas.com/content/sasdummy/2013/05/20/export-and-download-any-file-from-sas-enterprise-guide/" target="_self"&gt;are all shown by example in this blog post&lt;/A&gt;. &amp;nbsp;I understand that English is not your primary language so I can appreciate that you have to interpret the steps. &amp;nbsp;See if you can follow the steps in the blog article though, and report back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 14:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377348#M24545</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-07-19T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377414#M24554</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt; really English is not my primary language.&lt;BR /&gt;Let us therefore communicate through my language.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A configuração deste processo de exportação deu certo, porém, o export em csv permanece com o mesmo problema.&lt;/P&gt;&lt;P&gt;Com aspas no inicio e no final de cada linha.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377414#M24554</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-19T15:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377421#M24556</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/154642"&gt;@egamorim&lt;/a&gt;&amp;nbsp;- you might find a quicker resolution by working with SAS Tech Support in Brazil..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Você pode encontrar uma resolução mais rápida trabalhando com o SAS Tech Support no Brasil:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;A href="http://www.sas.com/offices/latinamerica/brazil/suporte/contato.html" target="_blank"&gt;http://www.sas.com/offices/latinamerica/brazil/suporte/contato.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 15:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377421#M24556</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-07-19T15:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377427#M24557</link>
      <description>&lt;P&gt;Ok, vou contatá-los, obrigado.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 16:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377427#M24557</guid>
      <dc:creator>egamorim</dc:creator>
      <dc:date>2017-07-19T16:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export txt</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377855#M24579</link>
      <description>&lt;P&gt;Ok, from the screenshot I can tell what is going on...&amp;nbsp; it is as I alluded to in earlier post...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The values in your column contain your default delimiter, which is the semi-colon given your&amp;nbsp;locale settings.&amp;nbsp; When you export as "Text Files (*.txt)", the values are separated by your default list separator (aka. delimiter).&amp;nbsp; Any values that contain your delimiter character&amp;nbsp;are wrapped in quotes (so they aren't ambiguous with the delimiters).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, if you do not want your values quoted, export to a text format that uses delimiters which are not contained in your values.&amp;nbsp; For example, in this case (where your values contain&amp;nbsp;semi-colons and semi-colon is the default list separator in your locale) export to space-delimited or tab-delimited&amp;nbsp;text file instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 17:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Export-txt/m-p/377855#M24579</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2017-07-20T17:43:14Z</dc:date>
    </item>
  </channel>
</rss>

