<?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 Proc Means Output In Desired Format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Output-In-Desired-Format/m-p/473240#M121414</link>
    <description>&lt;P&gt;I am using PRCO MEANS in SAS 9.2 on 10 different variable so I have&amp;nbsp;defined a&amp;nbsp;macro variable like %let var = BWT GENDER RACE etc ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my following code runs but the value of the variable are coming in informat 12. (example:&amp;nbsp;69.7597143)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means N MEAN STD MEDIAN Q1 Q3 MIN MAX data=perflags;&lt;BR /&gt;class Group;&lt;BR /&gt;var&amp;nbsp;&amp;amp;var ;&lt;BR /&gt;output out = STAT (drop = _TYPE_ _FREQ_) ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way I can format&amp;nbsp;all the variables to say 8.3 by using my macro variable and not specifying all the variables ? For example something like format &amp;amp;var 8.3?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 05:44:05 GMT</pubDate>
    <dc:creator>sfo</dc:creator>
    <dc:date>2018-06-26T05:44:05Z</dc:date>
    <item>
      <title>Proc Means Output In Desired Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Output-In-Desired-Format/m-p/473240#M121414</link>
      <description>&lt;P&gt;I am using PRCO MEANS in SAS 9.2 on 10 different variable so I have&amp;nbsp;defined a&amp;nbsp;macro variable like %let var = BWT GENDER RACE etc ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my following code runs but the value of the variable are coming in informat 12. (example:&amp;nbsp;69.7597143)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means N MEAN STD MEDIAN Q1 Q3 MIN MAX data=perflags;&lt;BR /&gt;class Group;&lt;BR /&gt;var&amp;nbsp;&amp;amp;var ;&lt;BR /&gt;output out = STAT (drop = _TYPE_ _FREQ_) ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way I can format&amp;nbsp;all the variables to say 8.3 by using my macro variable and not specifying all the variables ? For example something like format &amp;amp;var 8.3?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 05:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Output-In-Desired-Format/m-p/473240#M121414</guid>
      <dc:creator>sfo</dc:creator>
      <dc:date>2018-06-26T05:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Means Output In Desired Format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Output-In-Desired-Format/m-p/473241#M121415</link>
      <description>&lt;P&gt;You can use MAXDEC=3 to control the number of decimals displayed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 06:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Means-Output-In-Desired-Format/m-p/473241#M121415</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-06-26T06:02:51Z</dc:date>
    </item>
  </channel>
</rss>

