<?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 sas data set into txt file-double quotation in values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-sas-data-set-into-txt-file-double-quotation-in-values/m-p/896019#M354009</link>
    <description>&lt;P&gt;I see, By using the DSD option, columns containing the delimiter will be quoted. What is the advantage of using DSD? MAy it happen that in column value there is same value like the delimiter and then there will be a problem to recognize the columns correctly?&lt;/P&gt;
&lt;P&gt;I am not sure IF the users of the txt file want to see the values with double quotation....&lt;/P&gt;
&lt;P&gt;What do you recommend me to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 11:02:18 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2023-09-27T11:02:18Z</dc:date>
    <item>
      <title>Export sas data set into txt file-double quotation in values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-sas-data-set-into-txt-file-double-quotation-in-values/m-p/896018#M354008</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am using data step to export sas data set into txt file.&lt;/P&gt;
&lt;P&gt;When I open the txt file via notepad I see that it looks like that&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_0-1695811235965.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88369i9736ADD84E8C8D72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_0-1695811235965.png" alt="Ronein_0-1695811235965.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My questions-&lt;/P&gt;
&lt;P&gt;1-Why the values are with&amp;nbsp;double quotation??&lt;/P&gt;
&lt;P&gt;2-Let's say that there are missing values (numeric and char) in the sas data set .&lt;/P&gt;
&lt;P&gt;In such situation do you recommend replacing the missing values into null (It means that for missing numeric the value will be null instead of dot and for char value the value will be also null)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IT can be done by&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;options MISSING&lt;/STRONG&gt;&lt;SPAN&gt;='';&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let file_extract=/usr/local/SAS/SASUsers/LabRet/Adhoc/creditCards/RRRRRR6.txt;
%put &amp;amp;file_extract;
data _null_;
file "&amp;amp;file_extract." dsd dlm = '|';
set sashelp.cars;
put (_all_) (~);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 10:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-sas-data-set-into-txt-file-double-quotation-in-values/m-p/896018#M354008</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T10:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Export sas data set into txt file-double quotation in values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-sas-data-set-into-txt-file-double-quotation-in-values/m-p/896019#M354009</link>
      <description>&lt;P&gt;I see, By using the DSD option, columns containing the delimiter will be quoted. What is the advantage of using DSD? MAy it happen that in column value there is same value like the delimiter and then there will be a problem to recognize the columns correctly?&lt;/P&gt;
&lt;P&gt;I am not sure IF the users of the txt file want to see the values with double quotation....&lt;/P&gt;
&lt;P&gt;What do you recommend me to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 11:02:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-sas-data-set-into-txt-file-double-quotation-in-values/m-p/896019#M354009</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T11:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export sas data set into txt file-double quotation in values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-sas-data-set-into-txt-file-double-quotation-in-values/m-p/896022#M354012</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have answered your first question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;1-Why the values are with&amp;nbsp;double quotation??&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;with your 2nd post:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;I see, By using the DSD option, columns containing the delimiter will be quoted. What is the advantage of using DSD? MAy it happen that in column value there is same value like the delimiter and then there will be a problem to recognize the columns correctly?&lt;/P&gt;
&lt;P&gt;I am not sure IF the users of the txt file want to see the values with double quotation....&lt;/P&gt;
&lt;P&gt;What do you recommend me to do?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And your second question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;2-Let's say that there are missing values (numeric and char) in the sas data set .&lt;/P&gt;
&lt;P&gt;In such situation do you recommend replacing the missing values into null (It means that for missing numeric the value will be null instead of dot and for char value the value will be also null)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IT can be done by&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;options MISSING&lt;/STRONG&gt;&lt;SPAN&gt;='';&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;has an answer from your 2nd post, viz., ask the users of the file what their requirements are when it comes to missing character (always blank) and numeric (missing option) values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in answer to your question in your 2nd post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;What do you recommend me to do?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;contact the users of your output, and make sure they confirm their requirements in writing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; kind regards,&lt;/P&gt;
&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 11:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-sas-data-set-into-txt-file-double-quotation-in-values/m-p/896022#M354012</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2023-09-27T11:16:09Z</dc:date>
    </item>
  </channel>
</rss>

