<?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 SAS to csv outputs extra quotation marks in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511764#M15866</link>
    <description>&lt;P&gt;Whenever I convert SAS to csv, I noticed that it would output extra quotation marks if a value contains quotation marks.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original value:&amp;nbsp;&lt;/P&gt;&lt;P&gt;hello "M" world&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output to CSV value:&lt;/P&gt;&lt;P&gt;"hello""M""world"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code to convert from SAS to CSV. I expect it has something to do with my put statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Let outfile = '\path\to\save\csv\table.csv' DLM = '|' DSD;


DATA _NULL_;
  SET library.table;
  FILE &amp;amp;outfile;
  put (_ALL_) (:);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any help would be great, Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Nov 2018 18:03:36 GMT</pubDate>
    <dc:creator>jim_toby</dc:creator>
    <dc:date>2018-11-09T18:03:36Z</dc:date>
    <item>
      <title>SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511764#M15866</link>
      <description>&lt;P&gt;Whenever I convert SAS to csv, I noticed that it would output extra quotation marks if a value contains quotation marks.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original value:&amp;nbsp;&lt;/P&gt;&lt;P&gt;hello "M" world&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output to CSV value:&lt;/P&gt;&lt;P&gt;"hello""M""world"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code to convert from SAS to CSV. I expect it has something to do with my put statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Let outfile = '\path\to\save\csv\table.csv' DLM = '|' DSD;


DATA _NULL_;
  SET library.table;
  FILE &amp;amp;outfile;
  put (_ALL_) (:);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any help would be great, Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 18:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511764#M15866</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-09T18:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511772#M15868</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/243552"&gt;@jim_toby&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Whenever I convert SAS to csv, I noticed that it would output extra quotation marks if a value contains quotation marks.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Original value:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hello "M" world&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output to CSV value:&lt;/P&gt;
&lt;P&gt;"hello""M""world"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code to convert from SAS to CSV. I expect it has something to do with my put statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Let outfile = '\path\to\save\csv\table.csv' DLM = '|' DSD;


DATA _NULL_;
  SET library.table;
  FILE &amp;amp;outfile;
  put (_ALL_) (:);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any help would be great, Thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First thing CSV = Comma Separated Values. If you use DLM='|' or anything except a comma the file is &lt;STRONG&gt;not&lt;/STRONG&gt; csv. This does have serious potential for causing problems with programs that expect a CSV file to have commas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get different results:&lt;/P&gt;
&lt;PRE&gt;Hello,"""M""",world&lt;/PRE&gt;
&lt;P&gt;Since your post of the example output does &lt;STRONG&gt;not&lt;/STRONG&gt; include any delimiter than I have to assume the post is from a program that modified the result and so the quotes around the words hello and world were placed by that other program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that when checking the output of delimited file do &lt;STRONG&gt;not&lt;/STRONG&gt; open them with anything except a plain text editor such as NotePad or even the SAS editor. Spreadsheets are almost always going to change something, especially if you then save from the spreadsheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One might ask why you thought you needed quotes around a variable to begin with?&lt;/P&gt;
&lt;P&gt;Very simple to remove quotes with the COMPRESS function.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 18:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511772#M15868</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-09T18:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511774#M15869</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;my example was just one value surrounded by pipes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it would look like:&amp;nbsp;&lt;STRONG&gt; |hello "M" world|....|.......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I did not construct this table so I don't want to change any of the data inside of it. Therefore I would like to leave the quotes&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 18:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511774#M15869</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-09T18:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511782#M15870</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Comma-separated_values" target="_blank"&gt;https://en.wikipedia.org/wiki/Comma-separated_values&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Any field &lt;I&gt;may&lt;/I&gt; be &lt;I&gt;quoted&lt;/I&gt; (that is, enclosed within double-quote characters). Some fields &lt;I&gt;must&lt;/I&gt; be quoted, as specified in following rules.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;"1997","Ford","E350"
&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Fields with embedded commas or double-quote characters must be quoted.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;1997,Ford,E350,"Super, luxurious truck"
&lt;/PRE&gt;
&lt;UL&gt;
&lt;LI&gt;Each of the embedded double-quote characters must be represented by a pair of double-quote characters.&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;1997,Ford,E350,"Super, ""luxurious"" truck"
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 18:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511782#M15870</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2018-11-09T18:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511787#M15871</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this issue:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Proc-Export-adding-extra-quotation-marks/td-p/90021" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Proc-Export-adding-extra-quotation-marks/td-p/90021&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;He was able to solve it by doing this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA _null_;
  SET SASHelp.table;&lt;BR /&gt;  FILE &amp;amp;outfile;&lt;BR /&gt;  put (_ALL_) ('|');&lt;BR /&gt;RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So this would indeed get rid of the extra quotations but it also adds the pipe delimeter at the start of every row. Main point is, is that it doesn't add the extra quotations.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 19:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511787#M15871</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-09T19:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511788#M15872</link>
      <description>&lt;P&gt;I don't see any extra quotes. Just the required quotes needed to make sure that the resulting file can actually be converted back to the source data.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 19:04:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511788#M15872</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-09T19:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511790#M15873</link>
      <description>You can remove the quotes, but the person reading the file is going to hate you.</description>
      <pubDate>Fri, 09 Nov 2018 19:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511790#M15873</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-09T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511793#M15874</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I want to convert it from SAS to csv in order to load it to netezza. If it adds extra quotations, it will appear with extra quotations in Netezza. So I would like for it to not manipulate any of the values.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 19:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511793#M15874</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-09T19:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511794#M15875</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;I want to convert it from SAS to csv in order to load it to netezza. If it adds extra quotations, it will appear with extra quotations in Netezza. So I would like for it to not manipulate any of the values. I don't have plans to convert it back to the source data since I'm not actually manipulating the SAS table but rather creating a new csv file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 19:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511794#M15875</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-09T19:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511796#M15876</link>
      <description>&lt;P&gt;Except for the CSV standard (which you're using pipes for some reason) requires double quotes. Most apps reading would expect it as well. Is Netezza adding the extra quotes?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, I tried putting your text into Excel and then saved it as a CSV, it looks like this:&lt;/P&gt;
&lt;P&gt;"hello ""M"" world"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then when I read it back in, it's fine. I'd be really really surprised if Netezza didn't do the same thing. Any particular reason you're not uploading straight to Netezza? Assuming no connection for some reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/243552"&gt;@jim_toby&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I want to convert it from SAS to csv in order to load it to netezza. If it adds extra quotations, it will appear with extra quotations in Netezza. So I would like for it to not manipulate any of the values.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 19:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511796#M15876</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-09T19:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511798#M15878</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/243552"&gt;@jim_toby&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;I want to convert it from SAS to csv in order to load it to netezza. If it adds extra quotations, it will appear with extra quotations in Netezza. So I would like for it to not manipulate any of the values. I don't have plans to convert it back to the source data since I'm not actually manipulating the SAS table but rather creating a new csv file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you need to ask Netezza what rules it uses for parsing text files. A number of databases I have used behave as if they were C code or Unix shell commands and expect to see backslashes in the data to "escape" special characters.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But most of them also have options so that they can handle normal CSV files (as defined by the standard that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;provided the link for).&amp;nbsp; For example if you are using the Redshift COPY command you can add the CSV option to have it handle quoted strings properly.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 19:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511798#M15878</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-09T19:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511800#M15879</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I'm not loading the file straight from SAS because the table contains over 500 million records and I get a communication link error when I do a bulkload due to the inactivity timeout limit&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 19:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511800#M15879</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-09T19:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511804#M15881</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;Sounds good, I'll do that. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Nov 2018 19:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511804#M15881</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-09T19:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511811#M15884</link>
      <description>&lt;P&gt;One thing to try is to not use the DSD option on the FILE statement.&lt;/P&gt;
&lt;P&gt;This will mean that you are not protected from embedded delimiters or unbalanced quotes.&amp;nbsp; So you need to check your data before writing it.&lt;/P&gt;
&lt;P&gt;It also will means that missing (aka NULL) values will be&amp;nbsp;represented as a single character instead of by adjacent delimiters.&amp;nbsp; So you need check to how Netezza will lines like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;value1| |value3&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;instead of like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;value1||value3&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A lot of databases will allow you to include the work "null" (or perhaps some other character string) to indicate missing values. If so you might be able to use user defined formats to fix that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  length yr 8 make model $20 description $100 ;
  yr=1997;
  make='Ford';
  model='E350';
  do description = ' ',"Super, luxurious truck","Super, ""luxurious"" truck" ;
    output;
  end;
  call missing(yr);
  output;
run;
proc format ;
  value null low-high=[best32.] other='null';
  value $null  ' '='null' other=[$200.];
run;

filename csv temp;
data _null_;
  file csv dlm='|' ;
  set have;
  format _numeric_ null. _character_ $null. ;
  put (_all_) (:) ;
run;
data _null_;
  infile csv ;
  input;
  list;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7
1         1997|Ford|E350|null 19
2         1997|Ford|E350|Super, luxurious truck 37
3         1997|Ford|E350|Super, "luxurious" truck 39
4         null|Ford|E350|Super, "luxurious" truck 39
&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Nov 2018 19:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511811#M15884</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-09T19:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to csv outputs extra quotation marks</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511918#M15889</link>
      <description>&lt;P&gt;Did you try PROC EXPORT or macro %DS2CSV()&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Nov 2018 11:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-to-csv-outputs-extra-quotation-marks/m-p/511918#M15889</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-11-10T11:06:30Z</dc:date>
    </item>
  </channel>
</rss>

