<?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: Adding a degree symbol (°) to my data. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835653#M330369</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/433943"&gt;@rogeralfa111&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;how get that Celsius symbol after or between a variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/433943"&gt;@rogeralfa111&lt;/a&gt;&amp;nbsp;&amp;nbsp;do not the solutions offered work for you? If not, please explain in detail (really, we need details) and show us the code you have tried.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 15:50:32 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-09-28T15:50:32Z</dc:date>
    <item>
      <title>Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635605#M188746</link>
      <description>&lt;P&gt; Data in the red circle are latitudes, and I am struggling with adding a degree symbol to every each one of them. Trying to do the job with using the format statement. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="스크린샷(58).png" style="width: 296px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37499i7EEC031355F7749C/image-dimensions/296x328?v=v2" width="296" height="328" role="button" title="스크린샷(58).png" alt="스크린샷(58).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 09:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635605#M188746</guid>
      <dc:creator>JayhwanLee</dc:creator>
      <dc:date>2020-03-29T09:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635610#M188747</link>
      <description>&lt;P&gt;See if this works for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
   picture deg other = '009.999°';
run;

data test;
   lat = 42.255; output;
   lat = 42.288; output;
   format lat deg.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Mar 2020 10:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635610#M188747</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-03-29T10:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635614#M188750</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319238"&gt;@JayhwanLee&lt;/a&gt;&amp;nbsp;(and&amp;nbsp;welcome to the SAS Support Communities, btw :-))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If some of your LAT values might be negative (southern latitudes), you should extend the definition of the picture format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;   
picture deg (round)
low - &amp;lt;0   = '0009.999°' (prefix='-')
0   - high = '0009.999°';
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Mar 2020 11:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635614#M188750</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-03-29T11:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635616#M188752</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;Good catch &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 11:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635616#M188752</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-03-29T11:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635618#M188754</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=work.func.math;
function fmt(x) $;
  length w $ 32;
  w=cats(' ',x,'(*ESC*){unicode FE12}');
  return (w);
endsub;
run;
proc format ;
value fmt
low-high=[fmt()];
run;
options cmplib=work.func;
proc report data=sashelp.class nowd;
format weight height fmt32.;
column _all_;
define _all_/style={cellwidth=80 just=right};
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="x.png" style="width: 487px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/37501i5C847708AE490752/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Mar 2020 11:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/635618#M188754</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-03-29T11:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835649#M330368</link>
      <description>&lt;P&gt;how get that Celsius symbol after or between a variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 15:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835649#M330368</guid>
      <dc:creator>rogeralfa111</dc:creator>
      <dc:date>2022-09-28T15:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835653#M330369</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/433943"&gt;@rogeralfa111&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;how get that Celsius symbol after or between a variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/433943"&gt;@rogeralfa111&lt;/a&gt;&amp;nbsp;&amp;nbsp;do not the solutions offered work for you? If not, please explain in detail (really, we need details) and show us the code you have tried.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 15:50:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835653#M330369</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-28T15:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835816#M330465</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp outlib=work.func.math;
function fmt(x) $;
  length w $ 32;
  w=cats(' ',x,'(*ESC*){unicode "2103"x}');
  return (w);
endsub;
run;
proc format ;
value fmt
low-high=[fmt()];
run;
options cmplib=work.func;
proc report data=sashelp.class nowd;
format weight height fmt32.;
column _all_;
define _all_/style={cellwidth=80 just=right};
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/*Or try this one*/
proc format ;
picture xx(default=40)
low-high='009.9 ℃';
run;

proc report data=sashelp.class nowd;
format weight height xx.;
column _all_;
define _all_/style={cellwidth=80 just=right};
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1664452739532.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75704i1B62F3ACD3335757/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1664452739532.png" alt="Ksharp_0-1664452739532.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 11:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835816#M330465</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-09-29T11:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835850#M330475</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/433943"&gt;@rogeralfa111&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;how get that Celsius symbol after or between a variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Custom formats are the way to go with values that you may need for calculation. Once you add some non-digit character like 'C' to an actual value you can no longer us it in arithmetic or model as a continuous variable.&lt;/P&gt;
&lt;P&gt;Formats are the instructions SAS uses to display things for humans to read. You can have multiple formats and use the one you need at a specific time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you read the Documentation on Proc Format it currently includes an example of how to even do simple numeric conversions, such as degrees F to C at display.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 14:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835850#M330475</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-29T14:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a degree symbol (°) to my data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835893#M330496</link>
      <description>&lt;P&gt;yeah got it&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for the solution&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 16:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-a-degree-symbol-to-my-data/m-p/835893#M330496</guid>
      <dc:creator>rogeralfa111</dc:creator>
      <dc:date>2022-09-29T16:57:53Z</dc:date>
    </item>
  </channel>
</rss>

