<?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: intnx to decrement quarter year in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18871#M2883</link>
    <description>Thankyou.&lt;BR /&gt;
&lt;BR /&gt;
Actually i need a function which is capable of reducing the qtr and year back say by a factor of n.</description>
    <pubDate>Tue, 19 Oct 2010 12:14:47 GMT</pubDate>
    <dc:creator>tommy81</dc:creator>
    <dc:date>2010-10-19T12:14:47Z</dc:date>
    <item>
      <title>intnx to decrement quarter year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18869#M2881</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know any function like intnx to increment or decrement quarteryear&lt;BR /&gt;
&lt;BR /&gt;
if  sysdate is 19oct2010 -- quarter year would be Q4 2010&lt;BR /&gt;
&lt;BR /&gt;
I need   &lt;BR /&gt;
&lt;BR /&gt;
Q4 2010&lt;BR /&gt;
Q3 2010&lt;BR /&gt;
Q2 2010&lt;BR /&gt;
Q1 2010&lt;BR /&gt;
Q4 2009&lt;BR /&gt;
&lt;BR /&gt;
Thankx</description>
      <pubDate>Tue, 19 Oct 2010 10:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18869#M2881</guid>
      <dc:creator>tommy81</dc:creator>
      <dc:date>2010-10-19T10:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: intnx to decrement quarter year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18870#M2882</link>
      <description>I think you just need to FORMAT the date.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc format;&lt;BR /&gt;
   picture QYYYY(default=9) other='Q%q %Y' (datatype=date);&lt;BR /&gt;
   run;&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   d = '19oct2010'd;&lt;BR /&gt;
   put d=yyq. d=Qyyyy.;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 19 Oct 2010 11:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18870#M2882</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-10-19T11:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: intnx to decrement quarter year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18871#M2883</link>
      <description>Thankyou.&lt;BR /&gt;
&lt;BR /&gt;
Actually i need a function which is capable of reducing the qtr and year back say by a factor of n.</description>
      <pubDate>Tue, 19 Oct 2010 12:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18871#M2883</guid>
      <dc:creator>tommy81</dc:creator>
      <dc:date>2010-10-19T12:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: intnx to decrement quarter year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18872#M2884</link>
      <description>The OP original post asked for a way to display a date as a quarter-year.&lt;BR /&gt;
&lt;BR /&gt;
Otherwise, consider the INTNX function and QTR (argument #1).  Check the SAS Language Dictionary DOC discussion on INTNX for details.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 19 Oct 2010 12:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18872#M2884</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-10-19T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: intnx to decrement quarter year</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18873#M2885</link>
      <description>INTNX?&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
870  data _null_;&lt;BR /&gt;
871     d = '19oct2010'd;&lt;BR /&gt;
872     do o = -4 to 4;&lt;BR /&gt;
873        q = intnx('QTR',d,o);&lt;BR /&gt;
874        put q=date9. q=yyq.;&lt;BR /&gt;
875        end;&lt;BR /&gt;
876     run;&lt;BR /&gt;
&lt;BR /&gt;
q=01OCT2009 q=2009Q4&lt;BR /&gt;
q=01JAN2010 q=2010Q1&lt;BR /&gt;
q=01APR2010 q=2010Q2&lt;BR /&gt;
q=01JUL2010 q=2010Q3&lt;BR /&gt;
q=01OCT2010 q=2010Q4&lt;BR /&gt;
q=01JAN2011 q=2011Q1&lt;BR /&gt;
q=01APR2011 q=2011Q2&lt;BR /&gt;
q=01JUL2011 q=2011Q3&lt;BR /&gt;
q=01OCT2011 q=2011Q4&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 19 Oct 2010 13:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intnx-to-decrement-quarter-year/m-p/18873#M2885</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-10-19T13:13:50Z</dc:date>
    </item>
  </channel>
</rss>

