<?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: Want to creat a .csv file with ; as separator in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Want-to-creat-a-csv-file-with-as-separator/m-p/34494#M6786</link>
    <description>Sarojkumar&lt;BR /&gt;
&lt;BR /&gt;
Which release of SAS are you using?&lt;BR /&gt;
In the data step, why not set dlm= ";" ?&lt;BR /&gt;
It works for me!&lt;BR /&gt;
&lt;BR /&gt;
In the proc export code, why use '|' when you want ';' ?&lt;BR /&gt;
&lt;BR /&gt;
If it's not working, show us your log!&lt;BR /&gt;
 &lt;BR /&gt;
hth&lt;BR /&gt;
peterC</description>
    <pubDate>Fri, 11 Jun 2010 12:57:50 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2010-06-11T12:57:50Z</dc:date>
    <item>
      <title>Want to creat a .csv file with ; as separator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-creat-a-csv-file-with-as-separator/m-p/34492#M6784</link>
      <description>I want to create a .CSV file from SAS dataset with ';' as the separator. I tried both the folloiwng options with all the delimiters, it works fine for all other delimiters except ";"&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
set sashelp.class;&lt;BR /&gt;
file "C:\temp\test1.csv" dsd dlm="," ; &lt;BR /&gt;
put name sex age;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
and &lt;BR /&gt;
&lt;BR /&gt;
PROC EXPORT DATA= work.saroj &lt;BR /&gt;
            OUTFILE= "C:\temp\test1.csv" &lt;BR /&gt;
            DBMS=CSV REPLACE;&lt;BR /&gt;
	   delimeter = '|';&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
My output should be the following with ; as the separator.&lt;BR /&gt;
&lt;BR /&gt;
Alfred;M;14&lt;BR /&gt;
Alice;F;13&lt;BR /&gt;
Barbara;F;13&lt;BR /&gt;
Carol;F;14&lt;BR /&gt;
Henry;M;14&lt;BR /&gt;
&lt;BR /&gt;
But the above values are displayed in separate columns as&lt;BR /&gt;
&lt;BR /&gt;
Alfred	M	14&lt;BR /&gt;
Alice	F	13&lt;BR /&gt;
Barbara	F	13&lt;BR /&gt;
Carol	F	14&lt;BR /&gt;
Henry	M	14&lt;BR /&gt;
James	M	12&lt;BR /&gt;
Jane	F	12&lt;BR /&gt;
Janet	F	15&lt;BR /&gt;
&lt;BR /&gt;
Any help on this.</description>
      <pubDate>Fri, 11 Jun 2010 10:11:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-creat-a-csv-file-with-as-separator/m-p/34492#M6784</guid>
      <dc:creator>Sarojkumar</dc:creator>
      <dc:date>2010-06-11T10:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Want to creat a .csv file with ; as separator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-creat-a-csv-file-with-as-separator/m-p/34493#M6785</link>
      <description>Hi:&lt;BR /&gt;
  Using ODS CSV and PROC PRINT, you can get the ';' as a delimiter. There have been previous forum postings on this topic:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=29025煡" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=29025煡&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=5414" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=5414&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=19459䰃" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=19459䰃&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 11 Jun 2010 10:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-creat-a-csv-file-with-as-separator/m-p/34493#M6785</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-11T10:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Want to creat a .csv file with ; as separator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-creat-a-csv-file-with-as-separator/m-p/34494#M6786</link>
      <description>Sarojkumar&lt;BR /&gt;
&lt;BR /&gt;
Which release of SAS are you using?&lt;BR /&gt;
In the data step, why not set dlm= ";" ?&lt;BR /&gt;
It works for me!&lt;BR /&gt;
&lt;BR /&gt;
In the proc export code, why use '|' when you want ';' ?&lt;BR /&gt;
&lt;BR /&gt;
If it's not working, show us your log!&lt;BR /&gt;
 &lt;BR /&gt;
hth&lt;BR /&gt;
peterC</description>
      <pubDate>Fri, 11 Jun 2010 12:57:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-creat-a-csv-file-with-as-separator/m-p/34494#M6786</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-06-11T12:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Want to creat a .csv file with ; as separator</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Want-to-creat-a-csv-file-with-as-separator/m-p/34495#M6787</link>
      <description>i agree with peterc.&lt;BR /&gt;
&lt;BR /&gt;
here is the code: (there was syntax error with proc export)&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
set sashelp.class;&lt;BR /&gt;
file "C:\temp\test1.csv" dsd dlm=";" ; &lt;BR /&gt;
put name sex age;&lt;BR /&gt;
run;             &lt;BR /&gt;
&lt;BR /&gt;
PROC EXPORT DATA= sashelp.class &lt;BR /&gt;
OUTFILE= "C:\temp\test1.csv" &lt;BR /&gt;
DBMS=CSV REPLACE ;&lt;BR /&gt;
delimiter = ';';&lt;BR /&gt;
RUN;</description>
      <pubDate>Fri, 11 Jun 2010 13:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Want-to-creat-a-csv-file-with-as-separator/m-p/34495#M6787</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-06-11T13:30:46Z</dc:date>
    </item>
  </channel>
</rss>

