<?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: Removing quotes for text file export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725507#M225371</link>
    <description>Because you have spaces in the row sas 'helps' by adding the quotes when you use the dlm option. Do you get the desired result if you remove the dlm option? If not try to use dlm=','&lt;BR /&gt;&lt;BR /&gt;Best regards, Jos</description>
    <pubDate>Thu, 11 Mar 2021 16:51:21 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2021-03-11T16:51:21Z</dc:date>
    <item>
      <title>Removing quotes for text file export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725489#M225360</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to generate a text file from the following rows without " sign at the beginning and the end of each row.&lt;/P&gt;&lt;P&gt;data in dat_out1:&lt;/P&gt;&lt;P&gt;Row1 (used multiple lines with '0d'x,'0a'x (CRLF) line separator at the end of each line:&lt;/P&gt;&lt;P&gt;000011111 &amp;nbsp; 0000022222 &amp;nbsp; &amp;nbsp; 033333 NNNNN&lt;/P&gt;&lt;P&gt;00001111a &amp;nbsp; 000002222a &amp;nbsp; &amp;nbsp; 03333a NNNNN&lt;/P&gt;&lt;P&gt;00001111b &amp;nbsp; 000002222b &amp;nbsp; &amp;nbsp; 03333b NNNNN&lt;/P&gt;&lt;P&gt;Row2:&lt;/P&gt;&lt;P&gt;000011111 &amp;nbsp; 0000022222 &amp;nbsp; &amp;nbsp; 033333 NNNNN&lt;/P&gt;&lt;P&gt;00001111a &amp;nbsp; 000002222a &amp;nbsp; &amp;nbsp; 03333a NNNNN&lt;/P&gt;&lt;P&gt;00001111b &amp;nbsp; 000002222b &amp;nbsp; &amp;nbsp; 03333b NNNNN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;file "C:\test.txt" dsd dlm='' mod;&lt;BR /&gt;set dat_out1;&lt;BR /&gt;put (_all_) (+(-1));&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got those results when see this in note pad:&lt;/P&gt;&lt;P&gt;"000011111 &amp;nbsp; 0000022222 &amp;nbsp; &amp;nbsp; 033333 NNNNN&lt;/P&gt;&lt;P&gt;00001111a &amp;nbsp; 000002222a &amp;nbsp; &amp;nbsp; 03333a NNNNN&lt;/P&gt;&lt;P&gt;00001111b &amp;nbsp; 000002222b &amp;nbsp; &amp;nbsp; 03333b NNNNN"&lt;/P&gt;&lt;P&gt;"100011111 &amp;nbsp; 1000022222 &amp;nbsp; &amp;nbsp; 133333 NNNNN&lt;/P&gt;&lt;P&gt;10001111a &amp;nbsp; 100002222a &amp;nbsp; &amp;nbsp; 13333a NNNNN&lt;/P&gt;&lt;P&gt;10001111b &amp;nbsp; 100002222b &amp;nbsp; &amp;nbsp; 13333b NNNNN"&lt;/P&gt;&lt;P&gt;And I need to get the following -- no separators, no quote signs only CRLF at the end of each line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;000011111 &amp;nbsp; 0000022222 &amp;nbsp; &amp;nbsp; 033333 NNNNN&lt;/P&gt;&lt;P&gt;00001111a &amp;nbsp; 000002222a &amp;nbsp; &amp;nbsp; 03333a NNNNN&lt;/P&gt;&lt;P&gt;00001111b &amp;nbsp; 000002222b &amp;nbsp; &amp;nbsp; 03333b NNNNN&lt;/P&gt;&lt;P&gt;100011111 &amp;nbsp; 1000022222 &amp;nbsp; &amp;nbsp; 133333 NNNNN&lt;/P&gt;&lt;P&gt;10001111a &amp;nbsp; 100002222a &amp;nbsp; &amp;nbsp; 13333a NNNNN&lt;/P&gt;&lt;P&gt;10001111b &amp;nbsp; 100002222b &amp;nbsp; &amp;nbsp; 13333b NNNNN&lt;/P&gt;&lt;P&gt;Is there an option to work directly with the txt file and do find/replace-delete " ?&lt;/P&gt;&lt;P&gt;Or export parameters should be modified?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Val&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 16:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725489#M225360</guid>
      <dc:creator>val_nikolajevs</dc:creator>
      <dc:date>2021-03-11T16:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Removing quotes for text file export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725507#M225371</link>
      <description>Because you have spaces in the row sas 'helps' by adding the quotes when you use the dlm option. Do you get the desired result if you remove the dlm option? If not try to use dlm=','&lt;BR /&gt;&lt;BR /&gt;Best regards, Jos</description>
      <pubDate>Thu, 11 Mar 2021 16:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725507#M225371</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2021-03-11T16:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Removing quotes for text file export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725514#M225372</link>
      <description>&lt;P&gt;Thank you very much. That worked. I got desired results.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 16:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725514#M225372</guid>
      <dc:creator>val_nikolajevs</dc:creator>
      <dc:date>2021-03-11T16:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Removing quotes for text file export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725517#M225374</link>
      <description>&lt;P&gt;I don't understand what you dataset looks like.&amp;nbsp; Do you just have the one variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The quotes are because the value being written includes the delimiter and you asked it to use the DSD option. It does not make any sense to include the DSD option.&amp;nbsp; You are not writing delimited data. It might look delimited to you, but you have a already inserted the delimiters into the data and just want SAS to write the strings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if your string with the LF's is in a variable named VAR1 in the dataset name DAT_OUT1 then this code would append the values to the end of the file C:\test.txt.&amp;nbsp; Note that it will write its own end of line characters after each observation.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file "C:\test.txt" mod;
  set dat_out1;
  put var1 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 17:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725517#M225374</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-11T17:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Removing quotes for text file export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725525#M225375</link>
      <description>Thank you.&lt;BR /&gt;Yes this a single variable&lt;BR /&gt;Your solution works too. delimiter was causing the problem.&lt;BR /&gt;Thank you,&lt;BR /&gt;Val</description>
      <pubDate>Thu, 11 Mar 2021 17:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-quotes-for-text-file-export/m-p/725525#M225375</guid>
      <dc:creator>val_nikolajevs</dc:creator>
      <dc:date>2021-03-11T17:07:59Z</dc:date>
    </item>
  </channel>
</rss>

