<?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 What is wrong with this informat? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35910#M8927</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can make the code work by using FORMAT.&lt;/P&gt;&lt;P&gt;Just one more question, why can I not use INFORMAT here? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* To Art297: The range should be till the end of 2006. Thanks for pointing that out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2011 05:37:47 GMT</pubDate>
    <dc:creator>Southwind</dc:creator>
    <dc:date>2011-07-25T05:37:47Z</dc:date>
    <item>
      <title>What is wrong with this informat?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35906#M8923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;proc format;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; invalue $newdate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01JAN1990'd - '31DEC2004'd = 'Too Early'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01JAN2005'd - '31DEC2005'd = [mmddyy10.]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '01JAN2007'd - high = 'Too Late';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running this, I kept getting the following error:&lt;/P&gt;&lt;P&gt;ERROR: These two ranges overlap: '01JAN1990'd-'31DEC2004'd and '01JAN2007'd-HIGH (fuzz=0).&lt;/P&gt;&lt;P&gt;ERROR: These two ranges overlap: '01JAN2007'd-HIGH and '01Jan2005'd-'31DEC2005'd (fuzz=0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2011 11:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35906#M8923</guid>
      <dc:creator>Southwind</dc:creator>
      <dc:date>2011-07-24T11:23:37Z</dc:date>
    </item>
    <item>
      <title>What is wrong with this informat?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35907#M8924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't test it at the moment, but will the error go away if you replace - with &amp;lt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2011 14:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35907#M8924</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-07-24T14:08:55Z</dc:date>
    </item>
    <item>
      <title>What is wrong with this informat?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35908#M8925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't want an INFORMAT you want a FORMAT.&amp;nbsp; Then use a FORMAT statement to format the date variable.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;format&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;value&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; newdate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;'01JAN1990'd&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; - &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;'31DEC2004'd&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'Too Early'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;'01JAN2005'd&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; - &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;'31DEC2005'd&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; = [&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal; font-family: 'Courier New'; background-color: white;"&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;'01JAN2007'd&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; - high = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'Too Late'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2011 14:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35908#M8925</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-07-24T14:16:33Z</dc:date>
    </item>
    <item>
      <title>What is wrong with this informat?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35909#M8926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure that data_null has already provided the correct answer but, while you make the change, is there a reason why you don't include 2006 in your ranges?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2011 14:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35909#M8926</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-07-24T14:21:12Z</dc:date>
    </item>
    <item>
      <title>What is wrong with this informat?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35910#M8927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can make the code work by using FORMAT.&lt;/P&gt;&lt;P&gt;Just one more question, why can I not use INFORMAT here? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* To Art297: The range should be till the end of 2006. Thanks for pointing that out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 05:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35910#M8927</guid>
      <dc:creator>Southwind</dc:creator>
      <dc:date>2011-07-25T05:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with this informat?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35911#M8928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is very interesting.&lt;/P&gt;&lt;P&gt;It looks like that proc format does not recognize the date constant '01jan2001'd ,when I use number of date to instead of '01jan2001'd. the code passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;proc format;
&amp;nbsp;&amp;nbsp;&amp;nbsp; invalue&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ newdate
&amp;nbsp; 10958 - 12000 = 'Too Early'
&amp;nbsp; 16000 - high = 'Too Late';
run;
data xx;
 do date='01jan1990'd to '01jan2011'd;
&amp;nbsp; output;
 end;
 format date mmddyy10.;
run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: xia keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 07:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35911#M8928</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-07-25T07:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with this informat?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35912#M8929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data xx;&lt;/P&gt;&lt;P&gt;input date $newdate20.;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;31JAN1990&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=xx;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Ksharp. I tested and it worked like charm.&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>Mon, 25 Jul 2011 10:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35912#M8929</guid>
      <dc:creator>Southwind</dc:creator>
      <dc:date>2011-07-25T10:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with this informat?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35913#M8930</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;Southwind wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can make the code work by using FORMAT.&lt;/P&gt;&lt;P&gt;Just one more question, why can I not use INFORMAT here? &lt;/P&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The INFORMAT code in your first post using the SAS date constant implies that you HAVE a variable that is a SAS DATE you want to display in a specific way.&amp;nbsp; If that is not correct you need to be specific about what you have and what you want not just "what's wrong with this"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given that I believe your starting point in a SAS DATE and you want to display Too Early, Too Late or MMDDYY you need a FORMAT not an INFORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could write a Rube Goldberg Machine &lt;A href="http://en.wikipedia.org/wiki/Rube_Goldberg_machine"&gt;http://en.wikipedia.org/wiki/Rube_Goldberg_machine&lt;/A&gt; program using an INFORMAT but that would be silly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 12:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35913#M8930</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-07-25T12:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with this informat?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35914#M8931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The two main problems I see with doing what I think you want to do with an INFORMAT are what you are inputting and what you are outputting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are attempting to define a character informat but the MMDDYY format is a numeric format. It outputs a numeric date not a character string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are attempting to define the inputs as date constants, but informats need character strings as inputs.&amp;nbsp; That is why it complains about overlapping ranges.&amp;nbsp; '01JAN1990' is less than '01JAN2007' which is less than '31DEC2004' because '19' &amp;lt; '20' and '31' &amp;gt; '01'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2011 13:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/What-is-wrong-with-this-informat/m-p/35914#M8931</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-07-25T13:17:21Z</dc:date>
    </item>
  </channel>
</rss>

