<?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 CNTLIN dataset values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708065#M217514</link>
    <description>&lt;P&gt;Add the HLO variable, so that it becomes clear these are not the usual HIGH and LOW values:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fmt;
retain
  fmtname "$NRIND"
  type "C"
  hlo ""
;
length start $10. label $10.;
input start label;
datalines;
ABNORMAL abnormal
NORMAL normal
HIGH high
LOW low
;

proc format cntlin=fmt;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt; 73         data fmt;
 74         retain
 75           fmtname "$NRIND"
 76           type "C"
 77           hlo ""
 78         ;
 79         length start $10. label $10.;
 80         input start label;
 81         datalines;
 
 NOTE: The data set WORK.FMT has 4 observations and 5 variables.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 86         ;
 87         
 88         proc format cntlin=fmt;
 NOTE: Format $NRIND is already on the library WORK.FORMATS.
 NOTE: Format $NRIND has been output.
 89         run;
&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Dec 2020 11:45:24 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-12-24T11:45:24Z</dc:date>
    <item>
      <title>proc format CNTLIN dataset values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708049#M217505</link>
      <description>&lt;P&gt;I am using the dataset to create the formats and in that I have coded values itself has "LOW", "HIGH" when i create formats out of it I am getting error "ERROR: These two ranges overlap: ". I gave the Type also as "C" to consider as character format but still sas is treating "LOW" /"HIGH" as key words and treating as range..Kindly help to resolve this. Below is an example dataset created to explain for example. Is there a way to mask this? For all others I am able to create the formats without any issues.&lt;/P&gt;&lt;P&gt;/****************************************/&lt;BR /&gt;data fmt;&lt;BR /&gt;retain fmtname "$NRIND";&lt;BR /&gt;length start $100. label $100.;&lt;BR /&gt;start = "ABNORMAL";&lt;BR /&gt;label = "abnormal";&lt;BR /&gt;type = "C";&lt;BR /&gt;output;&lt;BR /&gt;start = "NORMAL";&lt;BR /&gt;label = "normal";&lt;BR /&gt;type = "C";&lt;BR /&gt;output;&lt;BR /&gt;start = "HIGH";&lt;BR /&gt;label = "high";&lt;BR /&gt;type = "C";&lt;BR /&gt;output;&lt;BR /&gt;start = "LOW";&lt;BR /&gt;label = "low";&lt;BR /&gt;type = "C";&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc format cntlin=fmt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/****************log************/&lt;/P&gt;&lt;P&gt;97 proc format cntlin=fmt;&lt;BR /&gt;ERROR: These two ranges overlap: LOW-LOW and ABNORMAL-ABNORMAL (fuzz=0).&lt;BR /&gt;ERROR: These two ranges overlap: HIGH-HIGH and NORMAL-NORMAL (fuzz=0).&lt;BR /&gt;98 run;&lt;/P&gt;&lt;P&gt;WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.&lt;BR /&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 09:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708049#M217505</guid>
      <dc:creator>Bala_SD</dc:creator>
      <dc:date>2020-12-24T09:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc format CNTLIN dataset values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708053#M217507</link>
      <description>&lt;P&gt;Don't use DATATYPE, you don't need it here, and it has a special function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fmt;
retain
  fmtname "$NRIND"
  type "C"
;
length start $10. label $10.;
input start label;
datalines;
ABNORMAL abnormal
NORMAL normal
HIGH high
LOW low
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Dec 2020 08:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708053#M217507</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-24T08:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc format CNTLIN dataset values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708055#M217509</link>
      <description>Thanks for the reply.. The problem is in the procedure creating the formats.. I tried creating the dataset as you suggested, but still getting the same error.&lt;BR /&gt;&lt;BR /&gt;117 data fmt;&lt;BR /&gt;118 retain&lt;BR /&gt;119 fmtname "$NRIND"&lt;BR /&gt;120 type "C"&lt;BR /&gt;121 ;&lt;BR /&gt;122 length start $10. label $10.;&lt;BR /&gt;123 input start label;&lt;BR /&gt;124 datalines;&lt;BR /&gt;&lt;BR /&gt;NOTE: The data set WORK.FMT has 4 observations and 4 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;129 ;&lt;BR /&gt;130 run;&lt;BR /&gt;131&lt;BR /&gt;132&lt;BR /&gt;133 proc format cntlin=fmt;&lt;BR /&gt;ERROR: These two ranges overlap: LOW-LOW and ABNORMAL-ABNORMAL (fuzz=0).&lt;BR /&gt;ERROR: These two ranges overlap: HIGH-HIGH and NORMAL-NORMAL (fuzz=0).&lt;BR /&gt;134 run;&lt;BR /&gt;&lt;BR /&gt;WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.&lt;BR /&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Dec 2020 08:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708055#M217509</guid>
      <dc:creator>Bala_SD</dc:creator>
      <dc:date>2020-12-24T08:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc format CNTLIN dataset values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708056#M217510</link>
      <description>&lt;P&gt;LOW and HIGH are reserved word of format procedure, usually used as:&lt;/P&gt;
&lt;P&gt;LOW - &amp;lt;value1&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;valuen&amp;gt; - HIGH&lt;/P&gt;
&lt;P&gt;that the reason you got the&amp;nbsp;&lt;SPAN&gt;These two ranges overlap: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"&lt;FONT color="#FF0000"&gt;These two ranges overlap&lt;/FONT&gt;:" error messages.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beyond, I had never used the DATATYPE= variable and you can omit it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;have shown you can add the TYPE to the RETAIN statement.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 09:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708056#M217510</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-12-24T09:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc format CNTLIN dataset values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708058#M217511</link>
      <description>Thanks for the reply. Datatype I just used for checking and without removing it i posted here. Yes it is treating "LOW"/"HIGH" as a reserved word only when i create formats from datasets using cntlin.. but if i create seperate format using the usual way it is not treating it as a reserved word and format is created without any issues.. So is there any way to mask this considering as a reserved word and consider to treat as just text while using cntlin ?&lt;BR /&gt;proc format;&lt;BR /&gt;value $NRIND&lt;BR /&gt;"ABNORMAL" = "abnormal"&lt;BR /&gt;"NORMAL" = "normal"&lt;BR /&gt;"HIGH"="high"&lt;BR /&gt;"LOW"= "low"&lt;BR /&gt;;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 24 Dec 2020 10:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708058#M217511</guid>
      <dc:creator>Bala_SD</dc:creator>
      <dc:date>2020-12-24T10:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc format CNTLIN dataset values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708065#M217514</link>
      <description>&lt;P&gt;Add the HLO variable, so that it becomes clear these are not the usual HIGH and LOW values:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fmt;
retain
  fmtname "$NRIND"
  type "C"
  hlo ""
;
length start $10. label $10.;
input start label;
datalines;
ABNORMAL abnormal
NORMAL normal
HIGH high
LOW low
;

proc format cntlin=fmt;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt; 73         data fmt;
 74         retain
 75           fmtname "$NRIND"
 76           type "C"
 77           hlo ""
 78         ;
 79         length start $10. label $10.;
 80         input start label;
 81         datalines;
 
 NOTE: The data set WORK.FMT has 4 observations and 5 variables.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 86         ;
 87         
 88         proc format cntlin=fmt;
 NOTE: Format $NRIND is already on the library WORK.FORMATS.
 NOTE: Format $NRIND has been output.
 89         run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Dec 2020 11:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708065#M217514</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-24T11:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc format CNTLIN dataset values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708085#M217524</link>
      <description>Thanks for the solution</description>
      <pubDate>Thu, 24 Dec 2020 14:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/708085#M217524</guid>
      <dc:creator>Bala_SD</dc:creator>
      <dc:date>2020-12-24T14:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc format CNTLIN dataset values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/890398#M351838</link>
      <description>&lt;P&gt;Do it like this it will work&lt;/P&gt;&lt;PRE&gt;data test_fmt;
length label $15;
fmtname='range';
input start $ end $ label :$;
datalines;
LOW 20 "good"
21 high "excellent"
other . "missing"
;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Aug 2023 15:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-CNTLIN-dataset-values/m-p/890398#M351838</guid>
      <dc:creator>mitiksh</dc:creator>
      <dc:date>2023-08-22T15:24:18Z</dc:date>
    </item>
  </channel>
</rss>

