<?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: How to Combine Year number, string 'Q', and Quarter # in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-Combine-Year-number-string-Q-and-Quarter/m-p/541240#M7336</link>
    <description>&lt;P&gt;Look into the different formats that are available for SAS dates&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 21:56:20 GMT</pubDate>
    <dc:creator>Tommy1</dc:creator>
    <dc:date>2019-03-07T21:56:20Z</dc:date>
    <item>
      <title>How to Combine Year number, string 'Q', and Quarter #</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Combine-Year-number-string-Q-and-Quarter/m-p/541214#M7326</link>
      <description>&lt;P&gt;I have a SAS EG assignment that needs me to combine year, 'Q' string, and quarter number in column. I converted a column named 'Date' (date format is 01Jan2019 for example) by using a WHEN Condition to read if the Q will be 1,2,3,or 4 named 'Quarter Ordered' with the Quarter number, shown below..&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Quarter&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sep2018&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Q1 is January, February, March. Q2 is April, May, June. Q3 is July, August, September. Q4 is October, November, December.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm stuck on how to format the quarter ordered column to read for example "2018Q4"&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 20:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Combine-Year-number-string-Q-and-Quarter/m-p/541214#M7326</guid>
      <dc:creator>CurryThree6</dc:creator>
      <dc:date>2019-03-07T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Year number, string 'Q', and Quarter #</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Combine-Year-number-string-Q-and-Quarter/m-p/541240#M7336</link>
      <description>&lt;P&gt;Look into the different formats that are available for SAS dates&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 21:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Combine-Year-number-string-Q-and-Quarter/m-p/541240#M7336</guid>
      <dc:creator>Tommy1</dc:creator>
      <dc:date>2019-03-07T21:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Year number, string 'Q', and Quarter #</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Combine-Year-number-string-Q-and-Quarter/m-p/541250#M7338</link>
      <description>&lt;P&gt;Use the correct format with an actual SAS date value.&lt;/P&gt;
&lt;PRE&gt;data example;
   date = '01Jan2019'd;
   format date yyq6.;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Mar 2019 22:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Combine-Year-number-string-Q-and-Quarter/m-p/541250#M7338</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-07T22:05:10Z</dc:date>
    </item>
  </channel>
</rss>

