<?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 How Do I Generate Sequence for Dividends for Different Years and Different Months? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-Do-I-Generate-Sequence-for-Dividends-for-Different-Years-and/m-p/538478#M74029</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set, in which companies pay dividends in different months in different years. I'd like to create a sequence of quarter dividend for 18 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I plan to group the dividend in different months into quarter dividend first, then create quarter dividend sequencing for different years next. Will there be any different and better way to do it? And would you kindly help me on the SAS procedures and programming please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tilda N.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 22:41:10 GMT</pubDate>
    <dc:creator>tramn</dc:creator>
    <dc:date>2019-02-25T22:41:10Z</dc:date>
    <item>
      <title>How Do I Generate Sequence for Dividends for Different Years and Different Months?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-Do-I-Generate-Sequence-for-Dividends-for-Different-Years-and/m-p/538478#M74029</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set, in which companies pay dividends in different months in different years. I'd like to create a sequence of quarter dividend for 18 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I plan to group the dividend in different months into quarter dividend first, then create quarter dividend sequencing for different years next. Will there be any different and better way to do it? And would you kindly help me on the SAS procedures and programming please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tilda N.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 22:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-Do-I-Generate-Sequence-for-Dividends-for-Different-Years-and/m-p/538478#M74029</guid>
      <dc:creator>tramn</dc:creator>
      <dc:date>2019-02-25T22:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Generate Sequence for Dividends for Different Years and Different Months?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-Do-I-Generate-Sequence-for-Dividends-for-Different-Years-and/m-p/538481#M74030</link>
      <description>If you have a dividend date, you can get the first date of the quarter easily:&lt;BR /&gt;&lt;BR /&gt;Q_begins = intnx('quarter', dividend_date, 0);</description>
      <pubDate>Mon, 25 Feb 2019 22:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-Do-I-Generate-Sequence-for-Dividends-for-Different-Years-and/m-p/538481#M74030</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-25T22:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Generate Sequence for Dividends for Different Years and Different Months?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-Do-I-Generate-Sequence-for-Dividends-for-Different-Years-and/m-p/538556#M74033</link>
      <description>&lt;P&gt;You could go for something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select 
    intnx("qtr", divDate, 0) as divQtr format=yyq.,
    sum((divAmount) as qtrDivAmount
from have
group by calculated divQtr;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where divDate is a SAS date.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 05:34:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-Do-I-Generate-Sequence-for-Dividends-for-Different-Years-and/m-p/538556#M74033</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-26T05:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Generate Sequence for Dividends for Different Years and Different Months?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-Do-I-Generate-Sequence-for-Dividends-for-Different-Years-and/m-p/539400#M74066</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/102399"&gt;@tramn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you want to aggregate dividends for all companies, by quarter, correct?&amp;nbsp; If so, what are your date variables?&amp;nbsp; I.e., are they sas date values?&amp;nbsp; Or possibly year and month variables?&amp;nbsp; Could you show a sample of what your sas data set currently contains?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 17:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-Do-I-Generate-Sequence-for-Dividends-for-Different-Years-and/m-p/539400#M74066</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-02-28T17:30:33Z</dc:date>
    </item>
  </channel>
</rss>

