<?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 Custom Format for Continuous Variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Custom-Format-for-Continuous-Variable/m-p/836822#M36116</link>
    <description>&lt;P&gt;I am trying to format a variable range. I know I am missing something. Not sure how to input into SAS.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname hw4 '\\apporto.com\dfs\GWU\Users\kennedyhinnant_gwu\Downloads\Assignment 4';
proc format; 
value CSfmt 1 = 'Current Smokers' 0 = 'Nonsmokers';
value txfmt 1 = "treatment" 0 = "Placebo";
run; 

proc format; 
value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";

run; &lt;/PRE&gt;&lt;PRE&gt;ERROR: Unable to clear or re-assign the library HW4 because it is still in use.
ERROR: Error in the LIBNAME statement.
26   proc format;
27   value CSfmt 1 = 'Current Smokers' 0 = 'Nonsmokers';
NOTE: Format CSFMT is already on the library WORK.FORMATS.
NOTE: Format CSFMT has been output.
28   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


29   proc format;
30   value CSfmt 1 = 'Current Smokers' 0 = 'Nonsmokers';
NOTE: Format CSFMT is already on the library WORK.FORMATS.
NOTE: Format CSFMT has been output.
31   value txfmt 1 = "treatment" 0 = "Placebo";
NOTE: Format TXFMT has been output.
32   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


33   value $bmifmt bmi &amp;gt;25 = "overweight"   0&amp;lt;bmi&amp;lt;= 25 = "normal";
     -----
     180

ERROR 180-322: Statement is not valid or it is used out of proper order.

34   run;

35   value $bmifmt HIGH bmi&amp;gt; 25 = "overweight"  0&amp;lt;bmi&amp;lt;= 25 = "normal";
     -----
     180

ERROR 180-322: Statement is not valid or it is used out of proper order.

36   run;

37   proc format;
38   value $bmifmt HIGH bmi&amp;gt; 25 = "overweight"  0&amp;lt;bmi&amp;lt;= 25 = "normal";
                   ----                           ---
                   22                             76
                   202
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ;, (, LOW, OTHER.

ERROR 76-322: Syntax error, statement will be ignored.

ERROR 202-322: The option or parameter is not recognized and will be ignored.

38 ! value $bmifmt HIGH bmi&amp;gt; 25 = "overweight"  0&amp;lt;bmi&amp;lt;= 25 = "normal";
                                                  ---
                                                  22
NOTE: 25 is a numeric field and a character format is defined.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, =.

NOTE: The previous statement has been deleted.
39   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.

40   proc format;
41   value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                   -                                 -
                   22                                200
                   200
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ;, (, LOW, OTHER.

ERROR 200-322: The symbol is not recognized and will be ignored.

41 ! value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                                                     -
                                                     22
NOTE: 25 is a numeric field and a character format is defined.
ERROR: This range is repeated, or values overlap: 25-25.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', =.

NOTE: The previous statement has been deleted.
42   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.

43   proc format;
44   value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                   -                                 -
                   22                                200
                   200
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ;, (, LOW, OTHER.

ERROR 200-322: The symbol is not recognized and will be ignored.

44 ! value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                                                     -
                                                     22
NOTE: 25 is a numeric field and a character format is defined.
ERROR: This range is repeated, or values overlap: 25-25.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', =.

NOTE: The previous statement has been deleted.
45   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Oct 2022 22:45:23 GMT</pubDate>
    <dc:creator>MisterJenn</dc:creator>
    <dc:date>2022-10-04T22:45:23Z</dc:date>
    <item>
      <title>Custom Format for Continuous Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Custom-Format-for-Continuous-Variable/m-p/836822#M36116</link>
      <description>&lt;P&gt;I am trying to format a variable range. I know I am missing something. Not sure how to input into SAS.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname hw4 '\\apporto.com\dfs\GWU\Users\kennedyhinnant_gwu\Downloads\Assignment 4';
proc format; 
value CSfmt 1 = 'Current Smokers' 0 = 'Nonsmokers';
value txfmt 1 = "treatment" 0 = "Placebo";
run; 

proc format; 
value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";

run; &lt;/PRE&gt;&lt;PRE&gt;ERROR: Unable to clear or re-assign the library HW4 because it is still in use.
ERROR: Error in the LIBNAME statement.
26   proc format;
27   value CSfmt 1 = 'Current Smokers' 0 = 'Nonsmokers';
NOTE: Format CSFMT is already on the library WORK.FORMATS.
NOTE: Format CSFMT has been output.
28   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


29   proc format;
30   value CSfmt 1 = 'Current Smokers' 0 = 'Nonsmokers';
NOTE: Format CSFMT is already on the library WORK.FORMATS.
NOTE: Format CSFMT has been output.
31   value txfmt 1 = "treatment" 0 = "Placebo";
NOTE: Format TXFMT has been output.
32   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


33   value $bmifmt bmi &amp;gt;25 = "overweight"   0&amp;lt;bmi&amp;lt;= 25 = "normal";
     -----
     180

ERROR 180-322: Statement is not valid or it is used out of proper order.

34   run;

35   value $bmifmt HIGH bmi&amp;gt; 25 = "overweight"  0&amp;lt;bmi&amp;lt;= 25 = "normal";
     -----
     180

ERROR 180-322: Statement is not valid or it is used out of proper order.

36   run;

37   proc format;
38   value $bmifmt HIGH bmi&amp;gt; 25 = "overweight"  0&amp;lt;bmi&amp;lt;= 25 = "normal";
                   ----                           ---
                   22                             76
                   202
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ;, (, LOW, OTHER.

ERROR 76-322: Syntax error, statement will be ignored.

ERROR 202-322: The option or parameter is not recognized and will be ignored.

38 ! value $bmifmt HIGH bmi&amp;gt; 25 = "overweight"  0&amp;lt;bmi&amp;lt;= 25 = "normal";
                                                  ---
                                                  22
NOTE: 25 is a numeric field and a character format is defined.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, =.

NOTE: The previous statement has been deleted.
39   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.

40   proc format;
41   value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                   -                                 -
                   22                                200
                   200
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ;, (, LOW, OTHER.

ERROR 200-322: The symbol is not recognized and will be ignored.

41 ! value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                                                     -
                                                     22
NOTE: 25 is a numeric field and a character format is defined.
ERROR: This range is repeated, or values overlap: 25-25.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', =.

NOTE: The previous statement has been deleted.
42   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.

43   proc format;
44   value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                   -                                 -
                   22                                200
                   200
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ;, (, LOW, OTHER.

ERROR 200-322: The symbol is not recognized and will be ignored.

44 ! value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                                                     -
                                                     22
NOTE: 25 is a numeric field and a character format is defined.
ERROR: This range is repeated, or values overlap: 25-25.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', =.

NOTE: The previous statement has been deleted.
45   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Oct 2022 22:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Custom-Format-for-Continuous-Variable/m-p/836822#M36116</guid>
      <dc:creator>MisterJenn</dc:creator>
      <dc:date>2022-10-04T22:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Format for Continuous Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Custom-Format-for-Continuous-Variable/m-p/836826#M36117</link>
      <description>&lt;P&gt;Your BMI format does look weird to me.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";

run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Did you perhaps mean:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
value  bmifmt 
 LOW - 25 = "normal"
 25 - High = "overweight";
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/435394"&gt;@MisterJenn&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to format a variable range. I know I am missing something. Not sure how to input into SAS.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname hw4 '\\apporto.com\dfs\GWU\Users\kennedyhinnant_gwu\Downloads\Assignment 4';
proc format; 
value CSfmt 1 = 'Current Smokers' 0 = 'Nonsmokers';
value txfmt 1 = "treatment" 0 = "Placebo";
run; 

proc format; 
value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";

run; &lt;/PRE&gt;
&lt;PRE&gt;ERROR: Unable to clear or re-assign the library HW4 because it is still in use.
ERROR: Error in the LIBNAME statement.
26   proc format;
27   value CSfmt 1 = 'Current Smokers' 0 = 'Nonsmokers';
NOTE: Format CSFMT is already on the library WORK.FORMATS.
NOTE: Format CSFMT has been output.
28   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


29   proc format;
30   value CSfmt 1 = 'Current Smokers' 0 = 'Nonsmokers';
NOTE: Format CSFMT is already on the library WORK.FORMATS.
NOTE: Format CSFMT has been output.
31   value txfmt 1 = "treatment" 0 = "Placebo";
NOTE: Format TXFMT has been output.
32   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


33   value $bmifmt bmi &amp;gt;25 = "overweight"   0&amp;lt;bmi&amp;lt;= 25 = "normal";
     -----
     180

ERROR 180-322: Statement is not valid or it is used out of proper order.

34   run;

35   value $bmifmt HIGH bmi&amp;gt; 25 = "overweight"  0&amp;lt;bmi&amp;lt;= 25 = "normal";
     -----
     180

ERROR 180-322: Statement is not valid or it is used out of proper order.

36   run;

37   proc format;
38   value $bmifmt HIGH bmi&amp;gt; 25 = "overweight"  0&amp;lt;bmi&amp;lt;= 25 = "normal";
                   ----                           ---
                   22                             76
                   202
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ;, (, LOW, OTHER.

ERROR 76-322: Syntax error, statement will be ignored.

ERROR 202-322: The option or parameter is not recognized and will be ignored.

38 ! value $bmifmt HIGH bmi&amp;gt; 25 = "overweight"  0&amp;lt;bmi&amp;lt;= 25 = "normal";
                                                  ---
                                                  22
NOTE: 25 is a numeric field and a character format is defined.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', -, =.

NOTE: The previous statement has been deleted.
39   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.

40   proc format;
41   value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                   -                                 -
                   22                                200
                   200
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ;, (, LOW, OTHER.

ERROR 200-322: The symbol is not recognized and will be ignored.

41 ! value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                                                     -
                                                     22
NOTE: 25 is a numeric field and a character format is defined.
ERROR: This range is repeated, or values overlap: 25-25.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', =.

NOTE: The previous statement has been deleted.
42   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.

43   proc format;
44   value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                   -                                 -
                   22                                200
                   200
ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant,
              a datetime constant, a missing value, ;, (, LOW, OTHER.

ERROR 200-322: The symbol is not recognized and will be ignored.

44 ! value $bmifmt -HIGH bmi&amp;gt; 25 = "overweight" LOW-0&amp;lt;bmi&amp;lt;= 25 = "normal";
                                                     -
                                                     22
NOTE: 25 is a numeric field and a character format is defined.
ERROR: This range is repeated, or values overlap: 25-25.
ERROR 22-322: Syntax error, expecting one of the following: (, ',', =.

NOTE: The previous statement has been deleted.
45   run;

NOTE: PROCEDURE FORMAT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 23:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Custom-Format-for-Continuous-Variable/m-p/836826#M36117</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-10-04T23:06:37Z</dc:date>
    </item>
  </channel>
</rss>

