<?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 High/Low with &amp;quot;Other&amp;quot; in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Format-High-Low-with-quot-Other-quot/m-p/585254#M14286</link>
    <description>&lt;P&gt;Please try the below updated code, check the&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if last statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ctrl2;
	input start :$8. end  :$8.;
	datalines;
0 0
1 12
13 23
24 24
25 35
36 36
37 47
48 48
49 59
60 60
61 71
72 72
73 108
109 180
180 high
;
run;

data ctrl;
	set ctrl2 end=last;
	retain fmtname 'fmt_name_user' eexcl 'N';


	Label = strip(strip(Start)||"-"||strip(end));


	output;

	if last then do;
			start='';
            end='';
			label='Missing';
			output;
		end;
run;

proc format cntlin=ctrl fmtlib;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 30 Aug 2019 15:50:22 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2019-08-30T15:50:22Z</dc:date>
    <item>
      <title>Proc Format High/Low with "Other"</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Format-High-Low-with-quot-Other-quot/m-p/585249#M14284</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create formats using a dataset.&lt;/P&gt;&lt;P&gt;I want to use Low and High as to accomodate extreme values.&lt;/P&gt;&lt;P&gt;But at the same time, i want dot(.) in its own category of missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having issue doing that. I get error like this:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Cannot mix missing and nonmissing values in the same range: 180-..&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ctrl2;
	input start :$8. end  :$8.;
	datalines;
0 0
1 12
13 23
24 24
25 35
36 36
37 47
48 48
49 59
60 60
61 71
72 72
73 108
109 180
180 high
;
run;

data ctrl;
	set ctrl2 end=last;
	retain fmtname 'fmt_name_user' eexcl 'N';


	Label = strip(strip(Start)||"-"||strip(end));


	output;

	if last then
		do;
			hlo='O';
			label='Missing';
			output;
		end;
run;
proc format cntlin=ctrl;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Format-High-Low-with-quot-Other-quot/m-p/585249#M14284</guid>
      <dc:creator>david27</dc:creator>
      <dc:date>2019-08-30T15:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format High/Low with "Other"</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Format-High-Low-with-quot-Other-quot/m-p/585254#M14286</link>
      <description>&lt;P&gt;Please try the below updated code, check the&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if last statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ctrl2;
	input start :$8. end  :$8.;
	datalines;
0 0
1 12
13 23
24 24
25 35
36 36
37 47
48 48
49 59
60 60
61 71
72 72
73 108
109 180
180 high
;
run;

data ctrl;
	set ctrl2 end=last;
	retain fmtname 'fmt_name_user' eexcl 'N';


	Label = strip(strip(Start)||"-"||strip(end));


	output;

	if last then do;
			start='';
            end='';
			label='Missing';
			output;
		end;
run;

proc format cntlin=ctrl fmtlib;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Format-High-Low-with-quot-Other-quot/m-p/585254#M14286</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-08-30T15:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format High/Low with "Other"</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Format-High-Low-with-quot-Other-quot/m-p/585258#M14287</link>
      <description>&lt;P&gt;It's a mistake to read in START and END as character variables.&amp;nbsp; Remove the $ from the INPUT statement, and make them numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can still create LABEL easily enough:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;label = cats(start, '-', end);&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 15:56:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Format-High-Low-with-quot-Other-quot/m-p/585258#M14287</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-08-30T15:56:31Z</dc:date>
    </item>
  </channel>
</rss>

