<?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: MMDDYY10 date format question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107400#M22390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this is very helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 14:24:53 GMT</pubDate>
    <dc:creator>RobF</dc:creator>
    <dc:date>2013-06-14T14:24:53Z</dc:date>
    <item>
      <title>MMDDYY10 date format question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107396#M22386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating a simple toy dataset containing date variables with the MMDDYY10. format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;data &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;input &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;id $ ed_from &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; ed_to &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;MMDDYY10. &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;ip_from &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; ip_to &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;format &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;ed_from &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; ed_to &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;MMDDYY10. &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;ip_from &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; ip_to &lt;/SPAN&gt;&lt;SPAN style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;datalines&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;CT0001 05/22/2011 05/22/2011 05/22/2011 05/30/2011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;CT0001 06/22/2011 06/22/2011 06/22/2011 06/30/2011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;CT0002 07/01/2012 07/02/2012 07/01/2012 07/06/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: #ffffc0; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;CT0002 07/10/2012 07/10/2012 07/20/2012 07/25/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;However I receive "Invalid data..." error messages when I attempt to run the above code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Any help identifying what I'm doing wrong is much appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Robert&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 13:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107396#M22386</guid>
      <dc:creator>RobF</dc:creator>
      <dc:date>2013-06-14T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: MMDDYY10 date format question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107397#M22387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input id $ ed_from:MMDDYY10. ed_to:MMDDYY10. ip_from:MMDDYY10. ip_to:MMDDYY10.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107397#M22387</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-06-14T14:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: MMDDYY10 date format question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107398#M22388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic, worked beautifully. I wasn't aware we should use colons in the input statement, this is good to know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks DBailey!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:15:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107398#M22388</guid>
      <dc:creator>RobF</dc:creator>
      <dc:date>2013-06-14T14:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: MMDDYY10 date format question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107399#M22389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use either&lt;SPAN style="text-decoration: underline;"&gt; formatted input&lt;/SPAN&gt; with a field size that correspond with the TOTAL column spacing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input id $ (ed_from ed_to ip_from ip_to) (MMDDYY11.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use pointer controls to move the line pointer to the beginning of date fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input id $ (ed_from ed_to ip_from ip_to) (+1 MMDDYY10.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;SPAN style="text-decoration: underline;"&gt;modified list input&lt;/SPAN&gt; with an informat that correspond with the size of the text tokens irrespective of the spacing between them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input id $ (ed_from ed_to ip_from ip_to) (:MMDDYY10.);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: PG Added an alternative.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107399#M22389</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-06-14T14:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: MMDDYY10 date format question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107400#M22390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this is very helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/MMDDYY10-date-format-question/m-p/107400#M22390</guid>
      <dc:creator>RobF</dc:creator>
      <dc:date>2013-06-14T14:24:53Z</dc:date>
    </item>
  </channel>
</rss>

