<?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: Add DSD option to proc export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896038#M354026</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I used data step method to export then there were double quotes in all values even if the values dont contain delimiter&amp;nbsp; value......&lt;/P&gt;
&lt;P&gt;so-&lt;/P&gt;
&lt;P&gt;When using proc export you say that automatically DSD option is applied BUT only added double quotes to values with delimiter value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using data step to export with DSD option then for any value there is double quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the code you used that does that as it is NOT the way a normal data step would behave.&lt;/P&gt;
&lt;PRE&gt;1295  data _null_;
1296    set sashelp.class(obs=3);
1297    file log dsd;
1298    put (_all_) (+0);
1299  run;

Alfred,M,14,69,112.5
Alice,F,13,56.5,84
Barbara,F,13,65.3,98
&lt;/PRE&gt;
&lt;P&gt;Do you really need the extra quotes added?&amp;nbsp; I would think with so many observations you would not want to make the text file larger than it needs to be.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 13:01:00 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-09-27T13:01:00Z</dc:date>
    <item>
      <title>Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896031#M354020</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to export sas data set into txt file.&lt;/P&gt;
&lt;P&gt;I want to use proc export and not data set method.&lt;/P&gt;
&lt;P&gt;I want to add double quotation to the values&amp;nbsp; using DSD option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My question- What is the way to add DSD option to proc export?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
Set sashelp.class;
if sex='F' then age=.;
label
Name='Client_Name'
Sex='Gender'
Age='Age'
Height='Height'
Weight='Weight'
;
run;

proc export data=Have
outfile="/usr/local/SAS/SASUsers/LabRet/Adhoc/creditCards/RRR.txt"
dbms=tab; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 12:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896031#M354020</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T12:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896032#M354021</link>
      <description>&lt;P&gt;The quotes will get added if you create a .csv file using dbms=csv. The delimiter will then of course be a comma.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 12:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896032#M354021</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-09-27T12:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896033#M354022</link>
      <description>&lt;P&gt;&lt;STRONG&gt;PROC EXPORT already adds the DSD option when it creates the data step to write the file.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are not seeing any extra quotes in the output file it is because the values do not contain either tabs or quotes so the extra quotes are not needed in the output file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The extra quotes are only needed in a delimited text file to make it so the file can be properly parsed. If the value does not have a delimiter there is no need to add the quotes.&amp;nbsp; You have to also add quotes when the value contains a quote to prevent quotes in the values from looking quotes inserted to protect embedded delimiters.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 12:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896033#M354022</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-27T12:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896034#M354023</link>
      <description>But I want TXT file and not CSV (Since file will have 250 million rows)</description>
      <pubDate>Wed, 27 Sep 2023 12:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896034#M354023</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T12:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896035#M354024</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;But I want TXT file and not CSV (Since file will have 250 million rows)&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That statement does not make any sense.&amp;nbsp; A CSV file is a TEXT file.&amp;nbsp; What do you think a TXT file is that would be different from a CSV file?&amp;nbsp; Do you mean it uses a different delimiter?&amp;nbsp; Use the DELIMITER= statement of PROC EXPORT to change the delimiter used.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 12:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896035#M354024</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-27T12:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896037#M354025</link>
      <description>&lt;P&gt;When I used data step method to export then there were double quotes in all values even if the values dont contain delimiter&amp;nbsp; value......&lt;/P&gt;
&lt;P&gt;so-&lt;/P&gt;
&lt;P&gt;When using proc export you say that automatically DSD option is applied BUT only added double quotes to values with delimiter value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using data step to export with DSD option then for any value there is double quotes.&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 12:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896037#M354025</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T12:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896038#M354026</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When I used data step method to export then there were double quotes in all values even if the values dont contain delimiter&amp;nbsp; value......&lt;/P&gt;
&lt;P&gt;so-&lt;/P&gt;
&lt;P&gt;When using proc export you say that automatically DSD option is applied BUT only added double quotes to values with delimiter value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using data step to export with DSD option then for any value there is double quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the code you used that does that as it is NOT the way a normal data step would behave.&lt;/P&gt;
&lt;PRE&gt;1295  data _null_;
1296    set sashelp.class(obs=3);
1297    file log dsd;
1298    put (_all_) (+0);
1299  run;

Alfred,M,14,69,112.5
Alice,F,13,56.5,84
Barbara,F,13,65.3,98
&lt;/PRE&gt;
&lt;P&gt;Do you really need the extra quotes added?&amp;nbsp; I would think with so many observations you would not want to make the text file larger than it needs to be.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896038#M354026</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-27T13:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896039#M354027</link>
      <description>&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lebaseutilref/n0yo3bszlrh0byn1j4fxh4ndei8u.htm" target="_self"&gt;Check out the %DS2CSV macro&lt;/A&gt; for some flexible options on creating text data from a data set.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896039#M354027</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2023-09-27T13:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896040#M354028</link>
      <description>&lt;P&gt;So what do you advice to do?&lt;/P&gt;
&lt;P&gt;there may have char columns that contain special symbols like double quotes,single quotes,comma,space and so on.....&lt;/P&gt;
&lt;P&gt;I prefer TXT and not CSV because I dont want that users confuse and open it in EXCEL (Since this file is so big)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896040#M354028</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T13:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896041#M354029</link>
      <description>&lt;P&gt;I prefer TXT file and not CSV because I dont want users confuse and open the file in EXCEL (since it is very big file).&lt;/P&gt;
&lt;P&gt;How would&amp;nbsp; you export&amp;nbsp; a very big sas data set into TXT?&lt;/P&gt;
&lt;P&gt;Please take into consideration that there are chart columns that contain special characters&amp;nbsp; such as : comma,space,tab,single quote,double quotes and so&amp;nbsp; on...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896041#M354029</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T13:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896043#M354030</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I prefer TXT file and not CSV because I dont want users confuse and open the file in EXCEL (since it is very big file).&lt;/P&gt;
&lt;P&gt;How would&amp;nbsp; you export&amp;nbsp; a very big sas data set into TXT?&lt;/P&gt;
&lt;P&gt;Please take into consideration that there are chart columns that contain special characters&amp;nbsp; such as : comma,space,tab,single quote,double quotes and so&amp;nbsp; on...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you are talking about the NAME of the file you created, not how the content is arranged.&amp;nbsp; You can use any name you want for the file.&amp;nbsp; If you don't want the user (or more importantly the user's operating system) to think it is a file that should be opened with EXCEL then do not use an extension on the filename that is one that your operating system has associated with EXCEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only special characters you need to worry about are embedded end of line markers.&amp;nbsp; SAS cannot process files with end of line markers embedded in one the values, whether or not the value is quoted.&amp;nbsp; Excel and other tools can read such a file when the value with the end of line marker is quoted, but normal SAS tools do not quote such variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally what I do is remove or replace any LF ('0A'x) or CR ('0D'x) characters that might be in the file before writing it to a delimited file.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 13:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896043#M354030</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-27T13:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896049#M354033</link>
      <description>&lt;P&gt;Thanks, Just that things be clear,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1-Do you recommend me to&amp;nbsp; create .CSV file and not&amp;nbsp; .TXT file ?&lt;/P&gt;
&lt;P&gt;Can you explain shortly why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2-Can you show the PROC EXPORT code that I should use in order to create the CSV file properly?&lt;/P&gt;
&lt;P&gt;I know the basic code, what supplements should I add to this code to struggle case of&amp;nbsp; commas in char column values?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing='';/**Convert numeric missing valu into null  value***/
proc export data=sashelp.class
outfile="path\class.csv"
dbms=csv 
replace;
run;
options missing='.';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I will appreciate if you may show full code.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 14:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896049#M354033</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T14:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896051#M354035</link>
      <description>I dont need extra quotes but I afraid that without it the TXT(or CSV file) will not cut the columns successfully. What do you think?</description>
      <pubDate>Wed, 27 Sep 2023 14:09:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896051#M354035</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T14:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896055#M354036</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_0-1695823843880.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88372i86886C965EA88557/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_0-1695823843880.png" alt="Ronein_0-1695823843880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ronein_1-1695823867711.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88373i9D450B635FEAC50C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ronein_1-1695823867711.png" alt="Ronein_1-1695823867711.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have(drop=Name rename=(_Name=Name));
Set sashelp.class;
if sex='F' then age=.;
IF Name='Henry' then _Name='Hen ry';else _Name=Name;
run;


/***********WAY1*****************/
/***********WAY1*****************/
/***********WAY1*****************/
options missing='';/**Convert numeric missing valu into null  value***/
proc export data=Have
outfile="/usr/local/SAS/SASUsers/LabRet/Adhoc/creditCards/WAY1.txt"
dbms=tab; 
run;
options missing='.';


/***********WAY2*****************/
/***********WAY2*****************/
/***********WAY2*****************/
options missing='';/**Convert numeric missing valu into null  value***/
%let file_extract=/usr/local/SAS/SASUsers/LabRet/Adhoc/creditCards/Way2.txt;
%put &amp;amp;file_extract;
data _null_;
file "&amp;amp;file_extract." dsd dlm="09"x;
set Have;
put (_all_) (~);
run;
options missing='.';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 14:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896055#M354036</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T14:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896067#M354038</link>
      <description>&lt;P&gt;What does "cut the columns successfully" actually mean?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are worried about the position, i.e. creating fixed column data, then Export is not what you should use.&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/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I dont need extra quotes but I afraid that without it the TXT(or CSV file) will not cut the columns successfully. What do you think?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 14:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896067#M354038</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-27T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896091#M354044</link>
      <description>&lt;P&gt;You are getting the extra quotes because you use the ~ modifier in your PUT statement.&amp;nbsp; Remove that.&amp;nbsp; You do need to have something inside the ( ) for the format list though.&amp;nbsp; I like to use +0 there as it indicate to move the curser by zero places, in otherwords to do nothing special.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;put ( _all_ ) ( +0 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You do not need to worry about the character used for displaying missing values since with the DSD option there nothing at all written for a missing value.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 16:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896091#M354044</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-27T16:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896098#M354047</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So what do you advice to do?&lt;/P&gt;
&lt;P&gt;there may have char columns that contain special symbols like double quotes,single quotes,comma,space and so on.....&lt;/P&gt;
&lt;P&gt;I prefer TXT and not CSV because I dont want that users confuse and open it in EXCEL (Since this file is so big)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Simply add in your documentation of the file that it must not be opened with Excel, only with software which is capable to work with such data.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 16:52:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896098#M354047</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-09-27T16:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896099#M354048</link>
      <description>So you recommend export to .csv file and not .txt file? Why?</description>
      <pubDate>Wed, 27 Sep 2023 17:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896099#M354048</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T17:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896100#M354049</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I dont need extra quotes but I afraid that without it the TXT(or CSV file) will not cut the columns successfully. What do you think?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To know whether or not the file can be properly read by some particular tool we need to know what tool you are using.&amp;nbsp; Most tools can read CSV files properly.&amp;nbsp; Most can also read similar files made with an other delimiter (in fact in a lot of countries that use comma as the decimal point indicate they routinely use semicolon as the delimiter instead of comma in "CSV" files).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I dislike using TAB as the delimiter in files because it makes the file hard to look at. And also if you open the file with a text editor it might replace the tabs with spaces to align the text to the next traditional tab stop and make the file unreadable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your data has a lot of commas (perhaps it has long descriptive text strings or using COMMA or DOLLAR format on some largish numbers) then I would use | as the delimiter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use a different extension on the file's name so that it does not accidentally get opened by whatever tool your machine is set to default to when it sees a CSV file.&amp;nbsp; The name of the file has NOTHING to do with the content.&amp;nbsp; It is just a suggestion to help the user make a quick judgement of what it MIGHT be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=have file='myfile.txt' dbms=csv ;
  delimiter='|';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 17:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896100#M354049</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-27T17:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add DSD option to proc export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896103#M354051</link>
      <description>I am a bit confused. You export to csv file ( dbms=csv)but used delimiter that is not comma?? As i understood csv file has comma delimiter by definition but here you export to csv file with other delimiter??</description>
      <pubDate>Wed, 27 Sep 2023 17:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-DSD-option-to-proc-export/m-p/896103#M354051</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2023-09-27T17:33:02Z</dc:date>
    </item>
  </channel>
</rss>

