<?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: Import CSV into SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-into-SAS/m-p/560409#M156707</link>
    <description>&lt;P&gt;Afaik tab-delimited files don't have any metadata in them.&lt;/P&gt;
&lt;P&gt;Proc import does not allow to set (in)formats, so you will have to use a data step.&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2019 09:01:46 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-05-21T09:01:46Z</dc:date>
    <item>
      <title>Import CSV into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-into-SAS/m-p/560402#M156703</link>
      <description>&lt;P&gt;How to check tab delimited file metadata before importing in sas via proc import ,I mean suppose I write a proc import with columns a,b,c with their informat and format in place but in second data refresh if I get a new column D ,how to check it before proc import fails.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 08:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-into-SAS/m-p/560402#M156703</guid>
      <dc:creator>LearnByMistk</dc:creator>
      <dc:date>2019-05-21T08:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-into-SAS/m-p/560406#M156705</link>
      <description>&lt;P&gt;proc import (most probably) won't fail, as it always does its best to make sense of input data, but the result will not match your previous results (structurally).&lt;/P&gt;
&lt;P&gt;The proper method for handling such issues is that you have an agreement in place where the structure of files is described, and the agreement has to be changed and communicated so that import steps can be adapted. Production import steps have to be data steps that have the file structure hardcoded, no proc import there.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 08:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-into-SAS/m-p/560406#M156705</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-21T08:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-into-SAS/m-p/560409#M156707</link>
      <description>&lt;P&gt;Afaik tab-delimited files don't have any metadata in them.&lt;/P&gt;
&lt;P&gt;Proc import does not allow to set (in)formats, so you will have to use a data step.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 09:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-into-SAS/m-p/560409#M156707</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-05-21T09:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-into-SAS/m-p/560490#M156747</link>
      <description>&lt;P&gt;You can read the header line and check.&lt;/P&gt;
&lt;P&gt;Say your input file is NEWCSV and expected structure is described by the SAS datasets TEMPLATE.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Read headers from new delimited file ;
data new_names ;
  length name $50 ;
  infile newcsv obs=1 dsd dlm='09'x ;
  input name @@ ;
run;

* Get names from template structure ;
proc transpose data=template(obs=0) out=old_names;
  var _all_;
run;

* Compare;
proc compare data=old_names compare=new_names;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PROC COMPARE will actually set a macro variable you can test to see if there are differences.&amp;nbsp; Or you can use some other methods to compare.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 13:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-into-SAS/m-p/560490#M156747</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-21T13:22:09Z</dc:date>
    </item>
  </channel>
</rss>

