<?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: Not understanding Multilabel Formats in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-understanding-Multilabel-Formats/m-p/635112#M23895</link>
    <description>&lt;P&gt;Ah, that seems to do it. It sure would be nice if the PROC FORMAT documentation mentioned that, but it doesn't. Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Mar 2020 18:18:03 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-03-26T18:18:03Z</dc:date>
    <item>
      <title>Not understanding Multilabel Formats</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-understanding-Multilabel-Formats/m-p/635105#M23893</link>
      <description>&lt;P&gt;As a simple example to learn Multilabel formats, let's suppose I want to use SASHELP.CLASS to determine average height amongst 11-13 year olds, and amongst 12-14 year olds;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value agefmt (multilabel) 11-13='11-13' 12-14='12-14';
run;
proc summary data=sashelp.class(where=(age&amp;lt;=14));
	var height;
	class age;
	output out=_stats_ mean=;
	format age agefmt.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Works as expected. Now suppose I also want to have one more average computed by the same PROC SUMMARY, where I want the mean of just 13 year olds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value agefmt (multilabel) 11-13='11-13' 12-14='12-14' 13-13='13';
run;
proc summary data=sashelp.class(where=(age&amp;lt;=14));
	var height;
	class age;
	output out=_stats_ mean=;
	format age agefmt.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This does not produce an average for just 13 year olds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I doing something wrong? Or am I misunderstanding the functionality of MULTILABEL formats? (Yes, I know I can get this from two PROC SUMMARY calls, but I really would like to understand the MULTILABEL format)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 17:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-understanding-Multilabel-Formats/m-p/635105#M23893</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-26T17:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Not understanding Multilabel Formats</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-understanding-Multilabel-Formats/m-p/635111#M23894</link>
      <description>You need to tell PROC SUMMARY you want to treat the formats as multi label by adding the MLF option to the CLASS statement.</description>
      <pubDate>Thu, 26 Mar 2020 18:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-understanding-Multilabel-Formats/m-p/635111#M23894</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-03-26T18:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Not understanding Multilabel Formats</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-understanding-Multilabel-Formats/m-p/635112#M23895</link>
      <description>&lt;P&gt;Ah, that seems to do it. It sure would be nice if the PROC FORMAT documentation mentioned that, but it doesn't. Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Mar 2020 18:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-understanding-Multilabel-Formats/m-p/635112#M23895</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-26T18:18:03Z</dc:date>
    </item>
  </channel>
</rss>

