<?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: infile date 00/00/00 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344727#M273065</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc format;
 invalue fmtdte
  '00/00/00' =-9E99
   other = [ddmmyy.]
;
run;quit;

data testing;
  informat h fmtdte.;
  input h ;
cards4;
10/12/07
00/00/00
;;;;
run;quit;


Up to 40 obs WORK.TESTING total obs=2

Obs          H

 1       17510
 2       -9E99


or


Up to 40 obs WORK.TESTING total obs=2

Obs        H

 1     17510
 2         0



&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Mar 2017 18:44:11 GMT</pubDate>
    <dc:creator>rogerjdeangelis</dc:creator>
    <dc:date>2017-03-27T18:44:11Z</dc:date>
    <item>
      <title>infile date 00/00/00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344700#M273060</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to infile a list of date and by default it was set to 00/00/00, when i execute 00/00/00 will become missing value as it is a invalid date. Can it extract as a date 00/00/00 instead of missing value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data testing;&lt;BR /&gt;&amp;nbsp; infile datalines dlm='|';&lt;BR /&gt;&amp;nbsp; input h :ddmmyy. g :ddmmyy.;&lt;BR /&gt;&amp;nbsp; format h g ddmmyy8.;&lt;BR /&gt;datalines;&lt;BR /&gt;10/12/07&amp;nbsp;&amp;nbsp;&amp;nbsp; | 10/01/16&lt;BR /&gt;00/00/00&amp;nbsp;&amp;nbsp;&amp;nbsp; | 28/03/17&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please advice.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344700#M273060</guid>
      <dc:creator>sagulolo</dc:creator>
      <dc:date>2017-03-27T17:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: infile date 00/00/00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344701#M273061</link>
      <description>&lt;P&gt;What date do you want to use instead of missing? No day of the month, no month of the year = &lt;STRONG&gt;not&lt;/STRONG&gt; a date. So the value cannot be represented as a date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What will you do with those date variables later on?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344701#M273061</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-27T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: infile date 00/00/00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344702#M273062</link>
      <description>thank for your time ballardw,&lt;BR /&gt;&lt;BR /&gt;actually the date was recorded as an incident happen, eg payment date, transaction date etc. if 00/00/00 means no transaction or payment was made.&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Mar 2017 17:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344702#M273062</guid>
      <dc:creator>sagulolo</dc:creator>
      <dc:date>2017-03-27T17:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: infile date 00/00/00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344703#M273063</link>
      <description>Possible to put it as 00/00/00 string since 00/00/00 is not a valid date?</description>
      <pubDate>Mon, 27 Mar 2017 17:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344703#M273063</guid>
      <dc:creator>sagulolo</dc:creator>
      <dc:date>2017-03-27T17:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: infile date 00/00/00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344724#M273064</link>
      <description>&lt;P&gt;You can't save 00/00/00 as a date, because it isn't a date.&amp;nbsp; However, you can create your own format for display purposes.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;/P&gt;
&lt;P&gt;value mydate .='00/00/00' other=[ddmmyy8.];&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then when using the data, apply the format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format h g mydate.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just one final word, though.&amp;nbsp; After the billions of dollars spent overcoming problems with two-digit years, why wouldn't you choose a format that permits four-digit years?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 18:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344724#M273064</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-27T18:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: infile date 00/00/00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344727#M273065</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc format;
 invalue fmtdte
  '00/00/00' =-9E99
   other = [ddmmyy.]
;
run;quit;

data testing;
  informat h fmtdte.;
  input h ;
cards4;
10/12/07
00/00/00
;;;;
run;quit;


Up to 40 obs WORK.TESTING total obs=2

Obs          H

 1       17510
 2       -9E99


or


Up to 40 obs WORK.TESTING total obs=2

Obs        H

 1     17510
 2         0



&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Mar 2017 18:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344727#M273065</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-03-27T18:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: infile date 00/00/00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344729#M273066</link>
      <description>Thank you so much Astounding,&lt;BR /&gt;for your question, just wanted to import to SAS according to the original text format. Or maybe in future, it might change to four-digit years.</description>
      <pubDate>Mon, 27 Mar 2017 18:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344729#M273066</guid>
      <dc:creator>sagulolo</dc:creator>
      <dc:date>2017-03-27T18:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: infile date 00/00/00</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344790#M273067</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42345"&gt;@rogerjdeangelis&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think that an Informat/ Format solution may work better with the special missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;/P&gt;
&lt;P&gt;invalue fmtdte&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; '00/00/00'= .A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; other =[ddmmyy8.];&lt;/P&gt;
&lt;P&gt;value mydate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; .A='00/00/00'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; other=[ddmmyy8.];&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use of any value may run into issues with date functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 20:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-date-00-00-00/m-p/344790#M273067</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-27T20:40:41Z</dc:date>
    </item>
  </channel>
</rss>

