<?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 Converting from Month year date to quarterly dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Converting-from-Month-year-date-to-quarterly-dates/m-p/391931#M277699</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had date variables of a certain test. You've helped me before in converting this to only month-year variable by using yymon7., but after lookign at the counts, it turned I need to convert it to a quarterly date to make the counts larger, to do a time series analysis later. I need the date to be instead of jan2016, Feb2016 with their counts to be Quarterly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have many questions:&lt;/P&gt;&lt;P&gt;Q1. I've tried proc expand to convert the time from month to QTR and it didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc expand data=monthly out =quarterly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;from =month to =QTR;&lt;/P&gt;&lt;P&gt;convert feecode;&lt;/P&gt;&lt;P&gt;id date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried q_date= QTR(date) and it just gave me number 1, 3....&lt;/P&gt;&lt;P&gt;Q2) I need to make time slices at certain intervention dates for a time series analysis, any one has a useful codes for these? I know it is complicated. If just a link for a useful coding source.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lamia&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2017 16:43:43 GMT</pubDate>
    <dc:creator>lamiaH</dc:creator>
    <dc:date>2017-08-30T16:43:43Z</dc:date>
    <item>
      <title>Converting from Month year date to quarterly dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-from-Month-year-date-to-quarterly-dates/m-p/391931#M277699</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had date variables of a certain test. You've helped me before in converting this to only month-year variable by using yymon7., but after lookign at the counts, it turned I need to convert it to a quarterly date to make the counts larger, to do a time series analysis later. I need the date to be instead of jan2016, Feb2016 with their counts to be Quarterly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have many questions:&lt;/P&gt;&lt;P&gt;Q1. I've tried proc expand to convert the time from month to QTR and it didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc expand data=monthly out =quarterly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;from =month to =QTR;&lt;/P&gt;&lt;P&gt;convert feecode;&lt;/P&gt;&lt;P&gt;id date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried q_date= QTR(date) and it just gave me number 1, 3....&lt;/P&gt;&lt;P&gt;Q2) I need to make time slices at certain intervention dates for a time series analysis, any one has a useful codes for these? I know it is complicated. If just a link for a useful coding source.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lamia&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 16:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-from-Month-year-date-to-quarterly-dates/m-p/391931#M277699</guid>
      <dc:creator>lamiaH</dc:creator>
      <dc:date>2017-08-30T16:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting from Month year date to quarterly dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-from-Month-year-date-to-quarterly-dates/m-p/391934#M277700</link>
      <description>&lt;P&gt;Look at the formats available and I'm 99% sure there's a year quarter one. Use that instead.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n0p2fmevfgj470n17h4k9f27qjag.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n0p2fmevfgj470n17h4k9f27qjag.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This page has the formats by category, so in the Date/DateTime section, find one that does what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 16:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-from-Month-year-date-to-quarterly-dates/m-p/391934#M277700</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-30T16:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Converting from Month year date to quarterly dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Converting-from-Month-year-date-to-quarterly-dates/m-p/391941#M277701</link>
      <description>&lt;P&gt;Formats such as YYQ6.&amp;nbsp; show date value as 2017Q1, yyQx allows you to specify character such as - / . &amp;lt;blank&amp;gt; or : between year and quarter number, YYQR displays the quarter as a Roman numeral yyqr7. would show 2017QI through 2017QIV, and the YYQRX uses the roman numeral plus a specified character as the yyqx does.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or roll your own with Proc Format.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 17:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Converting-from-Month-year-date-to-quarterly-dates/m-p/391941#M277701</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-30T17:14:16Z</dc:date>
    </item>
  </channel>
</rss>

