<?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: How Can I Convert sas dataset into &amp;quot;Pipe-delimited ASCII file with a .dat extension&amp;quot; a in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/580029#M13506</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;but one of my drug name has DEC03 so when it comes to that CSV file it is showing it gas 3-Dec. How can I solve this?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your CSV file is fine. The problem is that you are using Excel to look at the file.&amp;nbsp; A CSV file has no information about the the data types for a column. So the program that reads it has to set its own data types. Excel does a bad job of this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either open the file in some other application.&amp;nbsp; Or if you must open it with Excel then start Excel first and use the menus to open the file so you get a step along the way to tell it what type of data each column contains.&amp;nbsp; In my current version of Excel there is a menu option "From Text/CSV" under the "Data" menu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 23:15:08 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-08-08T23:15:08Z</dc:date>
    <item>
      <title>How Can I Convert sas dataset into "Pipe-delimited ASCII file with a .dat extension" and "CSV"</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/579962#M13500</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. How Can I Convert sas dataset into "Pipe-delimited ASCII file with a .dat extension"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. To Create CSV file I am using below code but it's giving me excel file. So&amp;nbsp;How Can I Convert sas dataset into "CSV"?&lt;/P&gt;&lt;P&gt;proc export data=inputdataset&lt;BR /&gt;outfile="&amp;amp;PROJROOT.\Analysis\&amp;amp;csvFileName"&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adi&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 18:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/579962#M13500</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-08-08T18:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Convert sas dataset into "Pipe-delimited ASCII file with a .dat extension" a</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/579963#M13501</link>
      <description>&lt;P&gt;Your second example is NOT giving you an Excel file. It is creating a CSV file.&amp;nbsp; You might be allowing your computer to automatically open Excel to read the file, but it is NOT an Excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you read the manual on PROC EXPORT?&amp;nbsp; Do you have specific questions about how to use it?&amp;nbsp; Did you find the section for how to set the delimiter that is used?&amp;nbsp; Show what you have tried and the resulting lines from the SAS log.&amp;nbsp; Make sure to use the Insert Code icon to get a pop-up window where you can paste the lines so the forum doesn't try to format it as if it was text paragraphs.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 18:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/579963#M13501</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-08T18:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Convert sas dataset into "Pipe-delimited ASCII file with a .dat extension" a</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/579979#M13502</link>
      <description>&lt;P&gt;One way:&lt;/P&gt;
&lt;PRE&gt;proc export data=inputdataset
   outfile="&amp;amp;PROJROOT.\Analysis\filename.dat"
   dbms=dlm replace;
   dlm='|';
run;&lt;/PRE&gt;
&lt;P&gt;Or use the Data export wizard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You did not show the value of your "csvfilename" macro variable so replaced it with something without macros to have an idea what should go there.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 19:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/579979#M13502</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-08T19:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Convert sas dataset into "Pipe-delimited ASCII file with a .dat extension" a</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/580005#M13504</link>
      <description>&lt;P&gt;Yes, that works well. Thank you for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one more question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using below code for creating a CSV file:&lt;/P&gt;&lt;P&gt;proc export data=export&lt;BR /&gt;outfile="&amp;amp;PROJROOT.\Analysis\&amp;amp;csvFileName"&lt;BR /&gt;dbms=csv replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but one of my drug name has DEC03 so when it comes to that CSV file it is showing it gas 3-Dec. How can I solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 22:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/580005#M13504</guid>
      <dc:creator>chinna0369</dc:creator>
      <dc:date>2019-08-08T22:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Convert sas dataset into "Pipe-delimited ASCII file with a .dat extension" a</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/580029#M13506</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;but one of my drug name has DEC03 so when it comes to that CSV file it is showing it gas 3-Dec. How can I solve this?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your CSV file is fine. The problem is that you are using Excel to look at the file.&amp;nbsp; A CSV file has no information about the the data types for a column. So the program that reads it has to set its own data types. Excel does a bad job of this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either open the file in some other application.&amp;nbsp; Or if you must open it with Excel then start Excel first and use the menus to open the file so you get a step along the way to tell it what type of data each column contains.&amp;nbsp; In my current version of Excel there is a menu option "From Text/CSV" under the "Data" menu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 23:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-Can-I-Convert-sas-dataset-into-quot-Pipe-delimited-ASCII/m-p/580029#M13506</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-08T23:15:08Z</dc:date>
    </item>
  </channel>
</rss>

