<?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: ERROR: For format $MCCDESC, this range is repeated, or values overlap: 26-26. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/498139#M132289</link>
    <description>thank you for your attenion.ballardw might tell more about the essence of this question and solve my confuse..thank you both!</description>
    <pubDate>Sun, 23 Sep 2018 01:20:47 GMT</pubDate>
    <dc:creator>ccnky123</dc:creator>
    <dc:date>2018-09-23T01:20:47Z</dc:date>
    <item>
      <title>ERROR: For format $MCCDESC, this range is repeated, or values overlap: 26-26.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497278#M131752</link>
      <description>&lt;P&gt;I have found some pages about this problem,typically there is an idea about "adding type="c" ",however the problem still exists.&lt;BR /&gt;Could someone kindly tell me why and how to fix?The attachment is data for this question and column&amp;nbsp;purc_amt is numeric while other are char type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mcc;
	set mcc_code(rename=(mcc=start mcc_desc=label)) end=last;
	retain start label;
	fmtname="mccdesc";
	type="c";
run;


proc sql noprint;
	insert into mcc
	set start="other"
		,label=""
		,fmtname="$mccdesc"
		,type="c";
quit;


proc format cntlin=mcc;run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 09:06:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497278#M131752</guid>
      <dc:creator>ccnky123</dc:creator>
      <dc:date>2018-09-20T09:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: For format $MCCDESC, this range is repeated, or values overlap: 26-26.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497290#M131758</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/173886"&gt;@ccnky123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to apply the format to numeric values (and, indeed, the MCC values seem to be numeric), you should &lt;EM&gt;not&lt;/EM&gt; force it to be a character format (by setting type="c"). To get the "other" specification into the definition use hlo='O' rather than start="other". (And fmtname would be "mccdesc" without a dollar sign even if it was a character format.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The overlapping values are a bigger issue, though: Let's say, the format will be applied to value 22. Is&amp;nbsp;the formatted value supposed to be "U48428" or "T81390" or "C11804" or ... (see dataset MCC_CODE)? It's possible to create a multilabel format (set hlo='M' and the error message will go away),&amp;nbsp;but I'm skeptical that this is what you really want because only a couple of procedures can utilize multilabel formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 09:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497290#M131758</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-09-20T09:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: For format $MCCDESC, this range is repeated, or values overlap: 26-26.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497293#M131759</link>
      <description>I am confused with your words..Would you please kindly tell me your exact code?</description>
      <pubDate>Thu, 20 Sep 2018 10:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497293#M131759</guid>
      <dc:creator>ccnky123</dc:creator>
      <dc:date>2018-09-20T10:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: For format $MCCDESC, this range is repeated, or values overlap: 26-26.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497301#M131763</link>
      <description>&lt;P&gt;Sorry, confusion was not intended. Okay, let's assume you really want to create a numeric multilabel format MCCDESC from dataset MCC_CODE.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create simplified input dataset */

data mcc_code;
input mcc mcc_desc $;
cards;
85 Q81739
22 U48428
22 T81390
;

/* Create dataset containing format definition */

data mcc;
set mcc_code(rename=(mcc=start mcc_desc=label)) end=last;
fmtname='mccdesc';
hlo='M';
output;
if last then do;
  hlo='O';
  label=' ';
  output;
end;
run;

/* Create numeric multilabel format MCCDESC */

proc format cntlin=mcc;
run;

/* Apply the format using the PUT statement
   Result: Only the first of multiple labels is used. */

data test;
input mcc x;
put mcc mccdesc.;
cards;
22 1
50 2
85 3
;

/* Demonstrate possible use of multilabel format
   Result: Multiple labels are used, one value (22) in two categories (T81390 and U48428) */

proc means data=test;
class mcc / mlf;
format mcc mccdesc.;
var x;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Sep 2018 10:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497301#M131763</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-09-20T10:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: For format $MCCDESC, this range is repeated, or values overlap: 26-26.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497436#M131846</link>
      <description>&lt;P&gt;Your specific problem is the data if you are attempting to create formats using that spreadsheet's values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;mcc	mcc_desc
10	D37246
10	l42883
10	s91910
&lt;/PRE&gt;
&lt;P&gt;Sorting the data shows that MCC has multiple values of mcc_desc for some values, as shown above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FORMAT will allow you to&amp;nbsp;have multiple values assigned to the same format text but not a single value assigned to multiple values of text&lt;/P&gt;
&lt;P&gt;unless you use a multilabel format which would then need different content to create a format. There would still need to be a single value as the top level of the multilabel for each repeated value and most procedures do not honor the multilabel for display. This holds regardless of whether the variable is numeric or character.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 20:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/497436#M131846</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-24T20:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: For format $MCCDESC, this range is repeated, or values overlap: 26-26.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/498139#M132289</link>
      <description>thank you for your attenion.ballardw might tell more about the essence of this question and solve my confuse..thank you both!</description>
      <pubDate>Sun, 23 Sep 2018 01:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-For-format-MCCDESC-this-range-is-repeated-or-values/m-p/498139#M132289</guid>
      <dc:creator>ccnky123</dc:creator>
      <dc:date>2018-09-23T01:20:47Z</dc:date>
    </item>
  </channel>
</rss>

