<?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: ODS CSVALL: character &amp;quot;+&amp;quot; eaten in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884163#M26325</link>
    <description>&lt;P&gt;Cool!!&lt;BR /&gt;Thank you Bart!&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2023 10:01:27 GMT</pubDate>
    <dc:creator>Pobel1</dc:creator>
    <dc:date>2023-07-10T10:01:27Z</dc:date>
    <item>
      <title>ODS CSVALL: character "+" eaten</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884137#M26320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is an example using ODS CSVALL to convert SAS to CSV file:&lt;/P&gt;&lt;DIV&gt;data test;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; x="aaaa"; output;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; x="+1"; output;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; x="Okay"; output;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ods csvall file="test.csv";&lt;/DIV&gt;&lt;DIV&gt;proc print data=test noobs;&lt;/DIV&gt;&lt;DIV&gt;run;&lt;/DIV&gt;&lt;DIV&gt;ods csvall close;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;And in the CSV file, the "+" sign is gone:&lt;BR /&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;x&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aaaa&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Okay&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;Question: Is there a way to keep the "+" in the CSV file?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance!&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Jul 2023 02:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884137#M26320</guid>
      <dc:creator>Pobel1</dc:creator>
      <dc:date>2023-07-10T02:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSVALL: character "+" eaten</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884142#M26321</link>
      <description>&lt;P&gt;How did you inspect the csv file? Do&amp;nbsp;&lt;STRONG&gt;NOT&lt;/STRONG&gt; open it with Excel, use a text editor.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 06:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884142#M26321</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-10T06:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSVALL: character "+" eaten</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884144#M26322</link>
      <description>&lt;P&gt;It's the same when using NOTEPAD to open the file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pobel1_0-1688971076134.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85686iC6E2286532608A7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pobel1_0-1688971076134.png" alt="Pobel1_0-1688971076134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 06:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884144#M26322</guid>
      <dc:creator>Pobel1</dc:creator>
      <dc:date>2023-07-10T06:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSVALL: character "+" eaten</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884147#M26323</link>
      <description>&lt;P&gt;According to &lt;A title="Maxim 1" href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068/show-comments/true" target="_self"&gt;Maxim 1&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    x="aaaa"; output;
    x="+1"; output;
    x="Okay"; output;
run;
 
ods csvall file="test.csv" options(DOC="HELP" Quoted_columns="1");

title "Test title!!";
proc print data=test noobs;
run;
ods csvall close;
 &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 07:04:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884147#M26323</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-07-10T07:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSVALL: character "+" eaten</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884149#M26324</link>
      <description>&lt;P&gt;If your goal is to have a simple csv file, don't use ODS. Both of these methods work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set test;
file "~/test1.csv";
if _n_ = 1 then put "x";
put x;
run;

proc export
  data=test
  file="~/test2.csv"
  dbms=csv
  replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And will perform MUCH better with larger datasets.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 07:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884149#M26324</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-10T07:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSVALL: character "+" eaten</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884163#M26325</link>
      <description>&lt;P&gt;Cool!!&lt;BR /&gt;Thank you Bart!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 10:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884163#M26325</guid>
      <dc:creator>Pobel1</dc:creator>
      <dc:date>2023-07-10T10:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSVALL: character "+" eaten</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884164#M26326</link>
      <description>&lt;P&gt;Thanks!&lt;BR /&gt;Yes, both of the methods work. Just I also need to add a title to the CSV file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 10:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884164#M26326</guid>
      <dc:creator>Pobel1</dc:creator>
      <dc:date>2023-07-10T10:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: ODS CSVALL: character "+" eaten</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884171#M26327</link>
      <description>&lt;P&gt;That is a BUG in the CSVALL ODS destination.&amp;nbsp; You should report it to SAS support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not only does it not generate the proper CSV file, it also seems to have some lasting impact on the normal HTML output used in the RESULT window in Display Manager.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I run this code once:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    x="aaaa"; output;
    x="+1.0"; output;
    x="Okay"; output;
run;
filename csv temp;
ods csvall file=csv;
proc print data=test noobs;
run;
ods csvall close;

data _null_;
  infile csv ;
  input;
  list;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The PROC PRINT displayed in the Results Window looks normal:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1688992017449.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85689iAD7410C19C4D0073/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1688992017449.png" alt="Tom_0-1688992017449.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If I then run the same code a second time the Results output has switched to using some monospaces font. And the output looks like the output previously sent to CSVALL, with the missing + and the extra unneeded quotes around the other value.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_1-1688992181050.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85690iA2CA0F2409DC59A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_1-1688992181050.png" alt="Tom_1-1688992181050.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 12:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-CSVALL-character-quot-quot-eaten/m-p/884171#M26327</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-10T12:29:53Z</dc:date>
    </item>
  </channel>
</rss>

