<?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 Assign format to a MACRO value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Assign-format-to-a-MACRO-value/m-p/10688#M894</link>
    <description>Would that be possible to assign a format to the value by using Symput (or similarly in PROC SQL).&lt;BR /&gt;
&lt;BR /&gt;
Here is an example:&lt;BR /&gt;
PROC SQL noprint;&lt;BR /&gt;
select min(EN) into :minEN;&lt;BR /&gt;
from test;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
The minimum value of EN is 10.12345. The above program works perfectly to get the exact value but can I assign a format like COMMA8.2 to change it to 10.12?</description>
    <pubDate>Wed, 25 Mar 2009 14:39:57 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-03-25T14:39:57Z</dc:date>
    <item>
      <title>Assign format to a MACRO value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-format-to-a-MACRO-value/m-p/10688#M894</link>
      <description>Would that be possible to assign a format to the value by using Symput (or similarly in PROC SQL).&lt;BR /&gt;
&lt;BR /&gt;
Here is an example:&lt;BR /&gt;
PROC SQL noprint;&lt;BR /&gt;
select min(EN) into :minEN;&lt;BR /&gt;
from test;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
The minimum value of EN is 10.12345. The above program works perfectly to get the exact value but can I assign a format like COMMA8.2 to change it to 10.12?</description>
      <pubDate>Wed, 25 Mar 2009 14:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-format-to-a-MACRO-value/m-p/10688#M894</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-25T14:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Assign format to a MACRO value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-format-to-a-MACRO-value/m-p/10689#M895</link>
      <description>With the DATA step approach and SYMPUT, you would use the PUT function in the SYMPUT call to generate a "formatted" value.  And with the PROC SQL approach, the FORMAT= keyword is added to the SELECT to generate a formatted value.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 25 Mar 2009 15:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-format-to-a-MACRO-value/m-p/10689#M895</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-03-25T15:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Assign format to a MACRO value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assign-format-to-a-MACRO-value/m-p/10690#M896</link>
      <description>PROC SQL noprint;&lt;BR /&gt;
select put(min(EN), comma8.2) into :minEN;&lt;BR /&gt;
from test;&lt;BR /&gt;
QUIT;</description>
      <pubDate>Wed, 25 Mar 2009 17:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assign-format-to-a-MACRO-value/m-p/10690#M896</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-03-25T17:44:01Z</dc:date>
    </item>
  </channel>
</rss>

