<?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: cut off/ignore the last two months regarding a date variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664562#M198566</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt; That means I can never(and I mean&lt;STRONG&gt;NEVER&lt;/STRONG&gt;)copy and past the log.&lt;BR /&gt;&lt;/EM&gt;This makes no sense.&lt;/P&gt;
&lt;P&gt;How did you see the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR 22-322: syntax error, expect one of the following: !, !!, &amp;amp;, ...)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;message?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Using SAS without seeing the log is like driving without seeing through the windshield:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You have the controls, but have no idea they are doing what you hope they are.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2020 06:19:50 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-06-24T06:19:50Z</dc:date>
    <item>
      <title>cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664540#M198550</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’d like to know how can I ignore the last two months with my data. The variable is a date. For example I have data from 01.01.2013 up to now and I want to see all data except the last two month, that means I want to have the data from 01.01.2013 till 23.04.2020 and I don’t want the data from 24.04.2020 till 24.06.2020 in my results. But what I don’t want to do is to change the „today date“ every time I use this query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx a lot for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS Enterprise Guide Version 7.15 HF2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Caro&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 04:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664540#M198550</guid>
      <dc:creator>Caro17</dc:creator>
      <dc:date>2020-06-24T04:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664547#M198552</link>
      <description>&lt;P&gt;Add a where clause.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where DATE &amp;lt; intnx('month', today(), -2, 's');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 05:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664547#M198552</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-24T05:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664549#M198554</link>
      <description>&lt;P&gt;And from where know the system the variables of the two dates?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 05:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664549#M198554</guid>
      <dc:creator>Caro17</dc:creator>
      <dc:date>2020-06-24T05:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664550#M198555</link>
      <description>&lt;P&gt;Please rephrase the question, I don't understand.&lt;/P&gt;
&lt;P&gt;The today() function give today's date, and in the intnx() function goes back 2 months. Is that clearer?&lt;/P&gt;
&lt;P&gt;Look at the documentation for these functions.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 05:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664550#M198555</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-24T05:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664552#M198557</link>
      <description>&lt;P&gt;See here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0hm9egy8s7mokn1mz0yxng80ax5.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;TODAY()&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p10v3sa3i4kfxfn1sovhi5xzxh8n.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;INTNX()&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 05:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664552#M198557</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-24T05:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664553#M198558</link>
      <description>&lt;P&gt;Sorry! I mixed it up with another problem. It is clear so far. But now I get a syntax error (ERROR 22-322: syntax error, expect one of the following: !, !!, &amp;amp;, ...) and I don't know why. I have checked the syntax but I can't see a mistake.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 05:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664553#M198558</guid>
      <dc:creator>Caro17</dc:creator>
      <dc:date>2020-06-24T05:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664554#M198559</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329668"&gt;@Caro17&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sorry! I mixed it up with another problem. It is clear so far. But now I get a syntax error (ERROR 22-322: syntax error, expect one of the following: !, !!, &amp;amp;, ...) and I don't know why. I have checked the syntax but I can't see a mistake.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When you get messages that you can't make sense of, always (and I mean&amp;nbsp;&lt;STRONG&gt;ALWAYS&lt;/STRONG&gt;) post the log.&lt;/P&gt;
&lt;P&gt;Copy/paste the&amp;nbsp;&lt;EM&gt;whole&lt;/EM&gt; text of the step that caused the message into a window opened with the &amp;lt;/&amp;gt; button. This is necessary to keep the formatting, as the log points to the exact position where SAS could no longer make sense of your code.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 05:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664554#M198559</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-24T05:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664556#M198561</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;and I don't know why. I have checked the syntax but I can't see a mistake.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;How do you expect us to see mistakes in code we don't see?&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s comments are patently sensible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 05:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664556#M198561</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-24T05:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664557#M198562</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's not possible because the data are on another computer. That means I can never &lt;SPAN&gt;(and I mean &lt;STRONG&gt;NEVER&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;copy and past the log.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 05:45:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664557#M198562</guid>
      <dc:creator>Caro17</dc:creator>
      <dc:date>2020-06-24T05:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664559#M198563</link>
      <description>&lt;P&gt;If you do not have access to the communities from your "work" computer, then, I am afraid, you will have to retype the log as is (including all spaces!) into the &amp;lt;/&amp;gt; window. I know it's tedious, but thank the idiot who forces a newbie to work in an environment where they are cut off from getting help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an alternative, I suggest you install SAS University Edition on your "internet" computer and recreate the issues there, so we can easier communicate problems and solutions.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 05:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664559#M198563</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-06-24T05:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664561#M198565</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/329668"&gt;@Caro17&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's not possible because the data are on another computer. That means I can never &lt;SPAN&gt;(and I mean &lt;STRONG&gt;NEVER&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;copy and past the log.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I normally get around such situations by sending myself an email or if it's on a remote desktop/Citrix Servers that doesn't allow to copy/paste to my local environment then taking a screenshot from my local environment is normally still possible.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 06:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664561#M198565</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-06-24T06:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: cut off/ignore the last two months regarding a date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664562#M198566</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; That means I can never(and I mean&lt;STRONG&gt;NEVER&lt;/STRONG&gt;)copy and past the log.&lt;BR /&gt;&lt;/EM&gt;This makes no sense.&lt;/P&gt;
&lt;P&gt;How did you see the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR 22-322: syntax error, expect one of the following: !, !!, &amp;amp;, ...)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;message?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Using SAS without seeing the log is like driving without seeing through the windshield:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You have the controls, but have no idea they are doing what you hope they are.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 06:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cut-off-ignore-the-last-two-months-regarding-a-date-variable/m-p/664562#M198566</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-06-24T06:19:50Z</dc:date>
    </item>
  </channel>
</rss>

