<?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: Formatting data from an ACROSS variable in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-data-from-an-ACROSS-variable/m-p/34173#M4956</link>
    <description>Hi:&lt;BR /&gt;
  If you explicitly add N to the report layout, then you can format it.&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\use_n.html' style=sasweb;&lt;BR /&gt;
proc report data=tmp nowindows;&lt;BR /&gt;
    columns ('Category' category),n;&lt;BR /&gt;
    define category / across ' ';&lt;BR /&gt;
    define n / f=8.1 ' ';&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
    <pubDate>Fri, 25 Jul 2008 19:05:40 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-07-25T19:05:40Z</dc:date>
    <item>
      <title>Formatting data from an ACROSS variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-data-from-an-ACROSS-variable/m-p/34172#M4955</link>
      <description>I'm creating a report using PROC REPORT.  One of the report items is an ACROSS variable.  I would like to format the report data for that variable, but I can't seem to figure out how.  Using format in the DEFINE statement formats the variable itself, but not the resulting count data.  Here's a very basic example:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data tmp;&lt;BR /&gt;
	input category :$1. @@;&lt;BR /&gt;
cards;&lt;BR /&gt;
A B C A B A A&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc report data=tmp nowindows;&lt;BR /&gt;
	columns category;&lt;BR /&gt;
	define category / across;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
For column 'A', the result is 4, but I'd like it to be formatted as 4.0.  I tried adding 'format=8.1' to the DEFINE statement, but that doesn't work.</description>
      <pubDate>Fri, 25 Jul 2008 16:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-data-from-an-ACROSS-variable/m-p/34172#M4955</guid>
      <dc:creator>1162</dc:creator>
      <dc:date>2008-07-25T16:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting data from an ACROSS variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-data-from-an-ACROSS-variable/m-p/34173#M4956</link>
      <description>Hi:&lt;BR /&gt;
  If you explicitly add N to the report layout, then you can format it.&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\use_n.html' style=sasweb;&lt;BR /&gt;
proc report data=tmp nowindows;&lt;BR /&gt;
    columns ('Category' category),n;&lt;BR /&gt;
    define category / across ' ';&lt;BR /&gt;
    define n / f=8.1 ' ';&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 25 Jul 2008 19:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-data-from-an-ACROSS-variable/m-p/34173#M4956</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-07-25T19:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting data from an ACROSS variable</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-data-from-an-ACROSS-variable/m-p/34174#M4957</link>
      <description>Worked perfectly.  Thanks.</description>
      <pubDate>Fri, 25 Jul 2008 20:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-data-from-an-ACROSS-variable/m-p/34174#M4957</guid>
      <dc:creator>1162</dc:creator>
      <dc:date>2008-07-25T20:55:08Z</dc:date>
    </item>
  </channel>
</rss>

