<?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: proc format with Overlapping Ranges in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568242#M159909</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $ffmt  (multilabel) 
'a'='1a'
'b'='2b'
'a','b'='3Total ab'
'c'='4c'
'a','b','c'='5Total abc';
run;


proc tabulate DATA=rawdata FORMAT=comma12.  ;
class Team / mlf preloadfmt exclusive order=formatted;
	format Team $ffmt.;
VAR SUM_Y ;
table team, SUM_Y="Total Y"*Sum="" /box='Team';

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30480i55F1CF2014948330/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jun 2019 20:38:12 GMT</pubDate>
    <dc:creator>ghosh</dc:creator>
    <dc:date>2019-06-23T20:38:12Z</dc:date>
    <item>
      <title>proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568193#M159892</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to create report&amp;nbsp; with&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Overlapping Ranges.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to get report with&amp;nbsp; 5 rows&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 1- Team a&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 2- Team b&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 3- Total of teams a and b&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 4- Team c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row5-Total of teams a,b,c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the result I don't get my desired result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May anyone help please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Data rawdata;
input ID SUM_Y  Team $;
cards;
3935 10 a
5970 20 b
6120 30 c
6120 40 c
7123 50 b
7507 60 a
7551 70 a
7551 80 a
7580 90 a
7989 100 b
8789 110 b
9039 120 c
9957 130 b
11235 140 a
12897 150 c
14421 160 c
16305 170 b
16530 180 a
16547 190 b
18710 200 c
;
run;


proc format;
value $ffmt  (multilabel)
'a'='a'
'b'='b'
'a','b'='Total'
'c'='c'
'a','b','c'='Total';
run;


PROC TABULATE DATA=rawdata  FORMAT=comma12.;
	VAR ID SUM_Y ;
	CLASS Team  / mlf ;
	format Team $ffmt.;
	TABLE Team=''  ,
           ID="No_records"*N="" 
           SUM_Y="Total Y"*Sum="" /box='Team';
RUN;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jun 2019 12:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568193#M159892</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-06-23T12:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568229#M159904</link>
      <description>&lt;P&gt;Post the log please.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to create report&amp;nbsp; with&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Overlapping Ranges.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to get report with&amp;nbsp; 5 rows&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 1- Team a&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 2- Team b&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 3- Total of teams a and b&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 4- Team c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row5-Total of teams a,b,c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the result I don't get my desired result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May anyone help please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Data rawdata;
input ID SUM_Y  Team $;
cards;
3935 10 a
5970 20 b
6120 30 c
6120 40 c
7123 50 b
7507 60 a
7551 70 a
7551 80 a
7580 90 a
7989 100 b
8789 110 b
9039 120 c
9957 130 b
11235 140 a
12897 150 c
14421 160 c
16305 170 b
16530 180 a
16547 190 b
18710 200 c
;
run;


proc format;
value $ffmt  (multilabel)
'a'='a'
'b'='b'
'a','b'='Total'
'c'='c'
'a','b','c'='Total';
run;


PROC TABULATE DATA=rawdata  FORMAT=comma12.;
	VAR ID SUM_Y ;
	CLASS Team  / mlf ;
	format Team $ffmt.;
	TABLE Team=''  ,
           ID="No_records"*N="" 
           SUM_Y="Total Y"*Sum="" /box='Team';
RUN;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2019 19:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568229#M159904</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-23T19:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568235#M159906</link>
      <description>&lt;P&gt;There is no error so no need to post the log.&lt;/P&gt;
&lt;P&gt;The output that I get is not what I want.&lt;/P&gt;
&lt;P&gt;As I wrote before I want to get in output 5 rows:(5 groups) and for each group to calculate total Y.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 1- Team a&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 2- Team b&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 3- Total of teams a and b&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 4- Team c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row5-Total of teams a,b,c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2019 20:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568235#M159906</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-06-23T20:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568237#M159907</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;In the result I don't get my desired result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;What result do you want? What result are you getting. How is it different than what you want.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2019 20:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568237#M159907</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-23T20:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568239#M159908</link>
      <description>&lt;P&gt;If you want the format to define 5 groups you need to define 5 groups instead of the 4 groups that you have defined now.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;value $ffmt  (multilabel)
  'a'='a'
  'b'='b'
  'a','b'='Total AB'
  'c'='c'
  'a','b','c'='Total ABC'
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Jun 2019 20:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568239#M159908</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-23T20:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568242#M159909</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $ffmt  (multilabel) 
'a'='1a'
'b'='2b'
'a','b'='3Total ab'
'c'='4c'
'a','b','c'='5Total abc';
run;


proc tabulate DATA=rawdata FORMAT=comma12.  ;
class Team / mlf preloadfmt exclusive order=formatted;
	format Team $ffmt.;
VAR SUM_Y ;
table team, SUM_Y="Total Y"*Sum="" /box='Team';

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30480i55F1CF2014948330/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2019 20:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568242#M159909</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-06-23T20:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568269#M159920</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;As I see that names of the categories in proc format must be different of each other.&lt;/P&gt;
&lt;P&gt;It means that I cannot call "Total"&amp;nbsp; to&amp;nbsp; multiple groups.&lt;/P&gt;
&lt;P&gt;The only problem is how to keep the order of the rows as in the proc format.&lt;/P&gt;
&lt;P&gt;The only solution that I found is to add numbers to the names.Is there a more clever way?It doesn't look so well in the output.&lt;/P&gt;
&lt;P&gt;'a'='1.a'&lt;BR /&gt;'b'='2.b'&lt;BR /&gt;'a','b'='3.Total AB'&lt;BR /&gt;'c'='4.c'&lt;BR /&gt;'a','b','c'='5.Total ABC';&lt;/P&gt;
&lt;P&gt;I also want to ask if all keywords&amp;nbsp;mlf preloadfmt exclusive are essential and what is the meaning of each of them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data rawdata;
input ID SUM_Y  Team $;
cards;
3935 10 a
5970 20 b
6120 30 c
6120 40 c
7123 50 b
7507 60 a
7551 70 a
7551 80 a
7580 90 a
7989 100 b
8789 110 b
9039 120 c
9957 130 b
11235 140 a
12897 150 c
14421 160 c
16305 170 b
16530 180 a
16547 190 b
18710 200 c
;
run;



proc format;
value $ffmt  (multilabel)
  'a'='1.a'
  'b'='2.b'
  'a','b'='3.Total AB'
  'c'='4.c'
  'a','b','c'='5.Total ABC';
Run;


proc tabulate DATA=rawdata FORMAT=comma12.  ;
class Team / mlf preloadfmt exclusive order=formatted;
	format Team $ffmt.;
VAR ID SUM_Y ;
table team=' ', 
ID="No_records"*N=""
SUM_Y="Total Y"*Sum="" /box='Team';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jun 2019 03:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568269#M159920</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-06-24T03:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568270#M159921</link>
      <description>You can label the sums as TOTAL and SUB-TOTAL&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jun 2019 03:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568270#M159921</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-06-24T03:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568272#M159923</link>
      <description>&lt;P&gt;Can you please send an example?&lt;/P&gt;
&lt;P&gt;I didn't understand how to do it&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 04:10:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568272#M159923</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-06-24T04:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568331#M159959</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;There is no error so no need to post the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When someone with about a hundred times your SAS experience asks you to post the log, you better post the log, period. See Maxim 2.&lt;/P&gt;
&lt;P&gt;Logs can reveal logic mistakes that do not result in ERROR or WARNING messages, so there's a reason for it.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 10:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568331#M159959</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-24T10:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568332#M159960</link>
      <description>&lt;P&gt;Okay, anyway I was out of home and didn't have access to SAS in order to run it.&lt;/P&gt;
&lt;P&gt;I don't understand why should I send the log while I write the code and anyone can run the code and look at the Log.&lt;/P&gt;
&lt;P&gt;There was no bad meaning so no need to be angry.&lt;/P&gt;
&lt;P&gt;I appreciate this forum very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 10:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568332#M159960</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-06-24T10:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568335#M159962</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Okay, anyway I was out of home and didn't have access to SAS in order to run it.&lt;/P&gt;
&lt;P&gt;I don't understand why should I send the log while I write the code and anyone can run the code and look at the Log.&lt;/P&gt;
&lt;P&gt;There was no bad meaning so no need to be angry.&lt;/P&gt;
&lt;P&gt;I appreciate this forum very much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Very often problems can be caused by non-standard settings or environments, which settings will not be obvious from the code you post, but from the log.&lt;/P&gt;
&lt;P&gt;There is a&amp;nbsp;&lt;EM&gt;very&lt;/EM&gt; big reason to place Maxim 2 so high up in the list. The log IS the #1 diagnostic tool for us code doctors.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 10:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568335#M159962</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-24T10:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568338#M159963</link>
      <description>&lt;P&gt;I did not mean to come across as angry. But maybe like a stern teacher in school &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 10:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568338#M159963</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-24T10:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568364#M159974</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Here is my updated code.  &lt;BR /&gt;You can now put anything as the format label.&lt;BR /&gt;&lt;BR /&gt;Please see the following link for explanation &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2016/12/16/creating-and-using-multilabel-formats/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sgf/2016/12/16/creating-and-using-multilabel-formats/&lt;/A&gt;&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;

proc format;
 value $ffmt  (multilabel notsorted) 
	'a'='a'
	'b'='b'
	'a','b'='Sub Total ab'
	'c'='c'
	'a','b','c'='Total abc';
run;

proc tabulate DATA=rawdata FORMAT=comma12.  ;
	class Team / mlf preloadfmt order=data;
	format Team $ffmt.;
	VAR SUM_Y ;
	table team, SUM_Y="Total Y"*Sum="" /box='Team';
run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 211px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30494i31A2C25DCC5386E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 13:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568364#M159974</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-06-24T13:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc format with Overlapping Ranges</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568381#M159982</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;There is no error so no need to post the log.&lt;/P&gt;
&lt;P&gt;The output that I get is not what I want.&lt;/P&gt;
&lt;P&gt;As I wrote before I want to get in output 5 rows:(5 groups) and for each group to calculate total Y.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 1- Team a&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 2- Team b&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 3- Total of teams a and b&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row 4- Team c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row5-Total of teams a,b,c&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So, what is wrong with the output?&lt;/P&gt;
&lt;P&gt;The order of definition coupled with options in proc tabulate will change the order of results. Please see the attached program example.&lt;/P&gt;
&lt;P&gt;The example creates a small data set and a couple of different formats and then uses the formats with different proc tabulate options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 15:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-with-Overlapping-Ranges/m-p/568381#M159982</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-24T15:02:07Z</dc:date>
    </item>
  </channel>
</rss>

