<?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 to set proper date format with EG to import csv file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489517#M127844</link>
    <description>&lt;P&gt;how does the column definition in the import data wizard look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should look&amp;nbsp;similar like this, usually EG picks the column as a date&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22734i333338458556A0B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Aug 2018 07:53:00 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2018-08-24T07:53:00Z</dc:date>
    <item>
      <title>how to set proper date format with EG to import csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489490#M127825</link>
      <description>&lt;P&gt;The date column values in csv file look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;log_date&lt;/TD&gt;&lt;TD&gt;cst_id&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20180502&lt;/TD&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20180818&lt;/TD&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;after I used EG to import this file,the column values in SAS all shows "."&lt;/P&gt;&lt;P&gt;how should I set a right format before import or change the column into the right date type after import that can show its value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your time.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 04:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489490#M127825</guid>
      <dc:creator>Geo-</dc:creator>
      <dc:date>2018-08-24T04:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to set proper date format with EG to import csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489502#M127834</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
infile ".......csv" dlm=",";
informat
  log_date yymmdd8.
  cst_id $3.
;
input
  log_date
  cst_id
;
format
  log_date yymmddd10.
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Just use proper informats. The import wizard might have mis-guessed.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 06:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489502#M127834</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-24T06:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to set proper date format with EG to import csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489505#M127837</link>
      <description>&lt;P&gt;And if you are running this in a client-server environment, you need to have the file on the server. Use the Copy Files task for this.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 06:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489505#M127837</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-24T06:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to set proper date format with EG to import csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489517#M127844</link>
      <description>&lt;P&gt;how does the column definition in the import data wizard look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should look&amp;nbsp;similar like this, usually EG picks the column as a date&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22734i333338458556A0B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 07:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489517#M127844</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-08-24T07:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to set proper date format with EG to import csv file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489559#M127869</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184018"&gt;@Geo-&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The date column values in csv file look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;log_date&lt;/TD&gt;
&lt;TD&gt;cst_id&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;20180502&lt;/TD&gt;
&lt;TD&gt;101&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;20180818&lt;/TD&gt;
&lt;TD&gt;102&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;after I used EG to import this file,the column values in SAS all shows "."&lt;/P&gt;
&lt;P&gt;how should I set a right format before import or change the column into the right date type after import that can show its value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your time.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Actually, your csv file (hopefully) does NOT look like this. A csv file looks like this:&lt;/P&gt;
&lt;PRE&gt;log_date,cst_id
20180502,101
20180818,102&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 12:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-set-proper-date-format-with-EG-to-import-csv-file/m-p/489559#M127869</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-24T12:04:43Z</dc:date>
    </item>
  </channel>
</rss>

