<?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 read date in this format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-in-this-format/m-p/251443#M47509</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input DOB $ ;
dt = input('01/'!!DOB,ddmmyy10.);
format dt mmyys. ;
datalines;
3/2011
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Feb 2016 00:24:22 GMT</pubDate>
    <dc:creator>mohamed_zaki</dc:creator>
    <dc:date>2016-02-23T00:24:22Z</dc:date>
    <item>
      <title>How to read date in this format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-in-this-format/m-p/251440#M47506</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm have a text file with date of birth entered in the format of mm/yyyy in numbers. So for example 5/1985.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to tell sas to read the data with informat - DOB monyy6. it says invalid data for DOB. I'm guessing that it's because it's not a 3 letter representation of a month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the other informat because I tried mmyy6. and that doesn't exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data temp;
	infile 'C:\Users\wjeon\Desktop\Masters\Data to William\PEI data/PEItxt.txt' delimiter='09'x dsd missover firstobs=2;
	length Patient_ID $20;
	informat Patient_ID $20. Gender 1. DOB mmyy10. Postal_Code $3. Region 1. Date_of_Service mmddyy10. Facility_type_id 2. ICD_9 $4. Specialty 3. Paid_amt best32. Approved_amt best32. Fee_Code $4.;
	input Patient_ID Gender DOB Postal_Code Region Date_of_Service Facility_type_id ICD_9 Specialty Paid_amt Approved_amt Fee_Code;
run;&lt;/PRE&gt;&lt;P&gt;I also&amp;nbsp;tried to make it read it as characters so that i can try to convert it later on but it still says invalid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2016 22:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-in-this-format/m-p/251440#M47506</guid>
      <dc:creator>jwill731</dc:creator>
      <dc:date>2016-02-21T22:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to read date in this format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-in-this-format/m-p/251443#M47509</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input DOB $ ;
dt = input('01/'!!DOB,ddmmyy10.);
format dt mmyys. ;
datalines;
3/2011
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 00:24:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-in-this-format/m-p/251443#M47509</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-02-23T00:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to read date in this format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-in-this-format/m-p/251445#M47511</link>
      <description>&lt;P&gt;Use the ANYDTDTE. informat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
informat dob anydtdte.;
format dob date9.;
input dob;
cards;
1/2016
5/2011
12/2010
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2016 01:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-in-this-format/m-p/251445#M47511</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-22T01:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to read date in this format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-in-this-format/m-p/251732#M47614</link>
      <description>Let SAS do the informat searching for you!&lt;BR /&gt;See the paper on the idea&lt;BR /&gt;VFORMAT Lets SAS® Do the Format Searching&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings14/1744-2014.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings14/1744-2014.pdf&lt;/A&gt;</description>
      <pubDate>Tue, 23 Feb 2016 07:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-date-in-this-format/m-p/251732#M47614</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2016-02-23T07:37:18Z</dc:date>
    </item>
  </channel>
</rss>

