<?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: Another way to reflect &amp;quot;Between&amp;quot; in dataset? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123995#M34115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FWIW, Finally I bumped into something from SAS-L regarding this matter:&lt;/P&gt;&lt;P&gt;Quote from one of Lassen's recent posts:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;as the macro language interpreter evaluates it like this&lt;/P&gt;&lt;P&gt;1&amp;lt;0&amp;lt;2 -&amp;gt; (1&amp;lt;0)&amp;lt;2 -&amp;gt; 0&amp;lt;2 -&amp;gt; 1&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Which means macro language evaluates expressions in a segmental pattern, not as a whole. It is not necessarily causing error message, it just interprets it differently, therefore leads to unexpected results. So as long as you know know how exactly it works, you can still use it in Macro language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 13:37:10 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2013-05-01T13:37:10Z</dc:date>
    <item>
      <title>Another way to reflect "Between" in dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123989#M34109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; DSM2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; DSM1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp; Orig = &amp;amp;pbd_date-LN_FST_DUE_DT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp; DPD = &amp;amp;pbd_date-LN_NXT_PMT_DUE_DT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; DPD &amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;90&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; DPD &amp;lt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;720&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; Orig &amp;gt;&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;365&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;notice the&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; DPD &amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;90&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; DPD &amp;lt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-family: 'Courier New';"&gt;720&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe there is another way to reflect in between?&amp;nbsp; Something like&amp;nbsp; 90&amp;lt;=DPD&amp;lt;=720&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 14:27:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123989#M34109</guid>
      <dc:creator>omega1983</dc:creator>
      <dc:date>2013-04-29T14:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Another way to reflect "Between" in dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123990#M34110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table DSM2 as&lt;/P&gt;&lt;P&gt;select&amp;nbsp; &amp;amp;pbd_date-LN_FST_DUE_DT as Orig&lt;/P&gt;&lt;P&gt;,&amp;amp;pbd_date-LN_NXT_PMT_DUE_DT as DPD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from DSM1&lt;/P&gt;&lt;P&gt;where (&amp;amp;pbd_date-LN_NXT_PMT_DUE_DT) between 90 and 720 AND&lt;/P&gt;&lt;P&gt;(&amp;amp;pbd_date-LN_FST_DUE_DT) &amp;gt; 365;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There ya go&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 14:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123990#M34110</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2013-04-29T14:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Another way to reflect "Between" in dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123991#M34111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly, have you tried it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if 90&amp;lt;=DPD&amp;lt;=720;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 14:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123991#M34111</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-04-29T14:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Another way to reflect "Between" in dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123992#M34112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Except that won't work in macro code in certain circumstances, so be careful where you use it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 16:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123992#M34112</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-29T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Another way to reflect "Between" in dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123993#M34113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually had this exact issue Reeze, and that is why I moved to running the proc sql version that I originally suggested. I have not run into the proc sql having any issues in any of the macro coding that I have used thus far.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;IF anyone thinks it would cause problems please say so!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 16:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123993#M34113</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2013-04-29T16:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Another way to reflect "Between" in dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123994#M34114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Fareeza, good to know. It would be helpful if someone could elaborate more&amp;nbsp; details on the errors when using this in Macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 16:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123994#M34114</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-04-29T16:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Another way to reflect "Between" in dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123995#M34115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FWIW, Finally I bumped into something from SAS-L regarding this matter:&lt;/P&gt;&lt;P&gt;Quote from one of Lassen's recent posts:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;as the macro language interpreter evaluates it like this&lt;/P&gt;&lt;P&gt;1&amp;lt;0&amp;lt;2 -&amp;gt; (1&amp;lt;0)&amp;lt;2 -&amp;gt; 0&amp;lt;2 -&amp;gt; 1&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Which means macro language evaluates expressions in a segmental pattern, not as a whole. It is not necessarily causing error message, it just interprets it differently, therefore leads to unexpected results. So as long as you know know how exactly it works, you can still use it in Macro language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 13:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Another-way-to-reflect-quot-Between-quot-in-dataset/m-p/123995#M34115</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-05-01T13:37:10Z</dc:date>
    </item>
  </channel>
</rss>

