<?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: Different keywords for delimited files in IMPORT/EXPORT proc. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Different-keywords-for-delimited-files-in-IMPORT-EXPORT-proc/m-p/792503#M253926</link>
    <description>&lt;P&gt;The main thing I see might be if you have a file named with a CSV extension that is not actually comma separated. Seems like we have more and more people using CSV for Character Separated. Without the correct DBMS and/or delimiter these might be a problem as it appears SAS would default to comma separated for import.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jan 2022 15:31:36 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-01-26T15:31:36Z</dc:date>
    <item>
      <title>Different keywords for delimited files in IMPORT/EXPORT proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-keywords-for-delimited-files-in-IMPORT-EXPORT-proc/m-p/792496#M253923</link>
      <description>&lt;P&gt;SAS provides three different options (TAB CSV DLM) for the DBMS= option on PROC IMPORT and PROC EXPORT that all read/write delimited files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know if there are any other differences?&amp;nbsp; Is there really any reason to use on name instead of the other, other than defaulting the DELIMITER that is used?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Test program:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
  set sashelp.class (obs=3);
run;

filename csv temp;
filename dlm temp;
filename tab temp;

proc export data=class file=csv dbms=csv;
  delimiter=',';
run;
proc export data=class file=dlm dbms=dlm;
  delimiter=',';
run;
proc export data=class file=tab dbms=tab;
  delimiter=',';
run;

data _null_;
  infile csv ;
  input;
  list;
run; 
data _null_;
  infile dlm ;
  input;
  list;
run; 
data _null_;
  infile tab ;
  input;
  list;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-keywords-for-delimited-files-in-IMPORT-EXPORT-proc/m-p/792496#M253923</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-26T15:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Different keywords for delimited files in IMPORT/EXPORT proc.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-keywords-for-delimited-files-in-IMPORT-EXPORT-proc/m-p/792503#M253926</link>
      <description>&lt;P&gt;The main thing I see might be if you have a file named with a CSV extension that is not actually comma separated. Seems like we have more and more people using CSV for Character Separated. Without the correct DBMS and/or delimiter these might be a problem as it appears SAS would default to comma separated for import.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-keywords-for-delimited-files-in-IMPORT-EXPORT-proc/m-p/792503#M253926</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-26T15:31:36Z</dc:date>
    </item>
  </channel>
</rss>

