<?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: Macro Variable Displaying as Scientific Notation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Displaying-as-Scientific-Notation/m-p/875841#M346069</link>
    <description>&lt;P&gt;Tell PROC SQL to use a different FORMAT when it generates the text that it stores into the macro variable.&amp;nbsp; You also probably do not want to store leading spaces into the macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus there is no need to also send the result to the printer.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select sum(points) format=best32. 
  into :dsumpoints trimmed
  from in1ernex
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2023 15:42:00 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-05-15T15:42:00Z</dc:date>
    <item>
      <title>Macro Variable Displaying as Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Displaying-as-Scientific-Notation/m-p/875839#M346068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to run the following query and the result keeps displaying as scientific notation. I need the sum to display as an integer. Is there anyway to resolve this issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select sum(points) into :dsumpoints&lt;BR /&gt;from in1ernex;&lt;BR /&gt;quit;&lt;/P&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="derekhe1988_0-1684164779479.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83983i389400FE38D2C689/image-size/medium?v=v2&amp;amp;px=400" role="button" title="derekhe1988_0-1684164779479.png" alt="derekhe1988_0-1684164779479.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 15:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Displaying-as-Scientific-Notation/m-p/875839#M346068</guid>
      <dc:creator>derekhe1988</dc:creator>
      <dc:date>2023-05-15T15:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Displaying as Scientific Notation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Displaying-as-Scientific-Notation/m-p/875841#M346069</link>
      <description>&lt;P&gt;Tell PROC SQL to use a different FORMAT when it generates the text that it stores into the macro variable.&amp;nbsp; You also probably do not want to store leading spaces into the macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus there is no need to also send the result to the printer.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
select sum(points) format=best32. 
  into :dsumpoints trimmed
  from in1ernex
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 15:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Displaying-as-Scientific-Notation/m-p/875841#M346069</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-05-15T15:42:00Z</dc:date>
    </item>
  </channel>
</rss>

