<?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: 88/88/8888 mmddyy10. format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86002#M18468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;88/88/8888 is not a &lt;STRONG&gt;valid&lt;/STRONG&gt; date...&lt;/P&gt;&lt;P&gt;Could you provide more context?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jan 2013 15:04:22 GMT</pubDate>
    <dc:creator>AncaTilea</dc:creator>
    <dc:date>2013-01-25T15:04:22Z</dc:date>
    <item>
      <title>88/88/8888 mmddyy10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86001#M18467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the SAS date format mmddyy10., the date January 25, 2013 would be written as "25Jan2013"d. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Applying this format, how would 88/88/8888 be written?&amp;nbsp; If this format cannot be used, what other format is advised in order for SAS to recognize 88/88/8888 as a valid date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 14:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86001#M18467</guid>
      <dc:creator>sophia_SAS</dc:creator>
      <dc:date>2013-01-25T14:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: 88/88/8888 mmddyy10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86002#M18468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;88/88/8888 is not a &lt;STRONG&gt;valid&lt;/STRONG&gt; date...&lt;/P&gt;&lt;P&gt;Could you provide more context?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 15:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86002#M18468</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-01-25T15:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: 88/88/8888 mmddyy10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86003#M18469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, I believe the mmddyy10. format looks like 01/25/2013 without the quotes and the d.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 15:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86003#M18469</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-01-25T15:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: 88/88/8888 mmddyy10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86004#M18470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What date system are you using that has 88 as either month or day of month (or equivalent)? The NLS system option LOCALE controls the defaults of how dates may be structured and may have some bearing but more details would help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 18:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86004#M18470</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-01-25T18:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: 88/88/8888 mmddyy10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86005#M18471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For SAS to recognize strings like 'xx/xx/xxxx' as dates you would need an INFORMAT, not a FORMAT.&lt;/P&gt;&lt;P&gt;You would use MMDDYY10. if the first part is the month and DDMMYY10. if the first part is the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; str='01/01/1960';&lt;/P&gt;&lt;P&gt;&amp;nbsp; dt = input(str,mmddyy10.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; format dt date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put (_all_) (=);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str=01/01/1960 dt=01JAN1960&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 23:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86005#M18471</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-01-25T23:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: 88/88/8888 mmddyy10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86006#M18472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;sophia_SAS wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;For the SAS date format mmddyy10., the date January 25, 2013 would be written as "25Jan2013"d.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Applying this format, how would 88/88/8888 be written?&amp;nbsp; If this format cannot be used, what other format is advised in order for SAS to recognize 88/88/8888 as a valid date?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;SAS won't recognise 88/88/8888 as a date, but you can make it appear so.&lt;/P&gt;&lt;P&gt;It uses a facility I call "embedded formats".&lt;/P&gt;&lt;P&gt;A special value would be stored for the 88 date, and a special informat and format would read it and re-present it with what-ever layout you want.&lt;/P&gt;&lt;P&gt;Here is the construction of the special formats - I'll call them informat and format&amp;nbsp;&amp;nbsp;&amp;nbsp; d88d.&lt;/P&gt;&lt;P&gt;proc format ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; invalue d88d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '88/88/8888' = 8e8 /* special non-date value */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other = [mmddyy14.]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;* here is a special format to write the 88 dates among normal dates ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; value d88d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8e8&amp;nbsp; = '88/88/8888'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other = [mmddyy10.]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;%put %sysfunc( today(), d88d ) ;&lt;/P&gt;&lt;P&gt;%put %sysfunc( inputn( %str(88/88/8888), d88d ), d8d) ;&lt;/P&gt;&lt;P&gt;%put %sysfunc( inputn( %str(26/01/2013), d88d ), d8d) ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jan 2013 12:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86006#M18472</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-01-26T12:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: 88/88/8888 mmddyy10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86007#M18473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example with three different date formats adding a &lt;STRONG&gt;s&lt;/STRONG&gt;lash as separator in between the year, month and day values (this is achived by the 's' after the date format. It may also be a &lt;STRONG&gt;b&lt;/STRONG&gt;lank, &lt;STRONG&gt;c&lt;/STRONG&gt;olon, &lt;STRONG&gt;d&lt;/STRONG&gt;ash, &lt;STRONG&gt;p&lt;/STRONG&gt;eriod or &lt;STRONG&gt;n&lt;/STRONG&gt;o separator):&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="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; want;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; date=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;'25JAN2013'd&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; date1 = put(date, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;ddmmyys10.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; date2 = put(date, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;mmddyys10.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; date2 = put(date, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;yymmdds10.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Florent&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 17:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/88-88-8888-mmddyy10-format/m-p/86007#M18473</guid>
      <dc:creator>Florent</dc:creator>
      <dc:date>2013-01-28T17:09:25Z</dc:date>
    </item>
  </channel>
</rss>

