<?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: BY USING ABOVE TABLES FIND OUT QUARTER WISE ...???? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/BY-USING-ABOVE-TABLES-FIND-OUT-QUARTER-WISE/m-p/589506#M168626</link>
    <description>&lt;P&gt;Thanks PG,&lt;/P&gt;&lt;P&gt;I tried to write some codes and got stuck after 3 codes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $mfmt "JAN","FEB","MAR"="Q1"
            "APR","MAY","JUN"="Q2"
            "JUL","AUG","SEP"="Q3"
            "OCT","NOV","DEC"="Q4";
run;
proc print data=customers ;
format month$mfmt.;
run;

data a;
set customers;
format month $mfmt.;
run;

proc sql;
create table j as select a.*,segment from a left join customer_seg on a.cust_id=customer_seg.cust_id;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;please advise how to get the correct output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;varmalh&lt;/P&gt;</description>
    <pubDate>Wed, 18 Sep 2019 00:41:54 GMT</pubDate>
    <dc:creator>varmalh</dc:creator>
    <dc:date>2019-09-18T00:41:54Z</dc:date>
    <item>
      <title>BY USING ABOVE TABLES FIND OUT QUARTER WISE ...????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BY-USING-ABOVE-TABLES-FIND-OUT-QUARTER-WISE/m-p/589228#M168495</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;can someone please advise how to get this question &lt;FONT face="arial black,avant garde" color="#000000"&gt;"&lt;STRONG&gt;BY USING ABOVE TABLES FIND OUT QUARTER WISE (QUARTER LIKE (FOR (JAN FEB MAR ) Q1, (JAN FEB MAR ) Q2,… and so on ) SEGEMENT WISE DISTINCT COUNT OF CUSTOMER AND THERE TOTAL_SPEND&lt;/STRONG&gt;"&lt;/FONT&gt;.....?&lt;/P&gt;&lt;P&gt;i have attached a screensort for the reference ......!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;varmalh&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 02:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BY-USING-ABOVE-TABLES-FIND-OUT-QUARTER-WISE/m-p/589228#M168495</guid>
      <dc:creator>varmalh</dc:creator>
      <dc:date>2019-09-17T02:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: BY USING ABOVE TABLES FIND OUT QUARTER WISE ...????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BY-USING-ABOVE-TABLES-FIND-OUT-QUARTER-WISE/m-p/589237#M168502</link>
      <description>&lt;P&gt;1) look up the definition of a quarter&lt;/P&gt;
&lt;P&gt;2) look up function QTR() and format QTR.&lt;/P&gt;
&lt;P&gt;3) try to at least write some code.&lt;/P&gt;
&lt;P&gt;4) submit any question that arises to the Forum&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in that order.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 03:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BY-USING-ABOVE-TABLES-FIND-OUT-QUARTER-WISE/m-p/589237#M168502</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-09-17T03:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: BY USING ABOVE TABLES FIND OUT QUARTER WISE ...????</title>
      <link>https://communities.sas.com/t5/SAS-Programming/BY-USING-ABOVE-TABLES-FIND-OUT-QUARTER-WISE/m-p/589506#M168626</link>
      <description>&lt;P&gt;Thanks PG,&lt;/P&gt;&lt;P&gt;I tried to write some codes and got stuck after 3 codes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $mfmt "JAN","FEB","MAR"="Q1"
            "APR","MAY","JUN"="Q2"
            "JUL","AUG","SEP"="Q3"
            "OCT","NOV","DEC"="Q4";
run;
proc print data=customers ;
format month$mfmt.;
run;

data a;
set customers;
format month $mfmt.;
run;

proc sql;
create table j as select a.*,segment from a left join customer_seg on a.cust_id=customer_seg.cust_id;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;please advise how to get the correct output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;varmalh&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 00:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/BY-USING-ABOVE-TABLES-FIND-OUT-QUARTER-WISE/m-p/589506#M168626</guid>
      <dc:creator>varmalh</dc:creator>
      <dc:date>2019-09-18T00:41:54Z</dc:date>
    </item>
  </channel>
</rss>

