<?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: Row Format in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5849#M2368</link>
    <description>Hi Tim,&lt;BR /&gt;
&lt;BR /&gt;
thank for your reply. what I'd like to do as follow:&lt;BR /&gt;
if I have a table this table has numbers with formats i.e dollar12.3 and there is one row in between should be percentage with another format %98, 11% ...&lt;BR /&gt;
&lt;BR /&gt;
so, how can I make only one row inside this table with different format i.e. with percentage.&lt;BR /&gt;
&lt;BR /&gt;
regards</description>
    <pubDate>Tue, 11 Dec 2007 14:30:13 GMT</pubDate>
    <dc:creator>MohamedS</dc:creator>
    <dc:date>2007-12-11T14:30:13Z</dc:date>
    <item>
      <title>Row Format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5847#M2366</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
is anyone know if we can reformat specific row in the report created by "Proc Report"?&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Tue, 11 Dec 2007 12:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5847#M2366</guid>
      <dc:creator>MohamedS</dc:creator>
      <dc:date>2007-12-11T12:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Row Format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5848#M2367</link>
      <description>Quite possibly, but I'd have to have more details about exactly what it is you want to do.</description>
      <pubDate>Tue, 11 Dec 2007 13:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5848#M2367</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2007-12-11T13:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Row Format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5849#M2368</link>
      <description>Hi Tim,&lt;BR /&gt;
&lt;BR /&gt;
thank for your reply. what I'd like to do as follow:&lt;BR /&gt;
if I have a table this table has numbers with formats i.e dollar12.3 and there is one row in between should be percentage with another format %98, 11% ...&lt;BR /&gt;
&lt;BR /&gt;
so, how can I make only one row inside this table with different format i.e. with percentage.&lt;BR /&gt;
&lt;BR /&gt;
regards</description>
      <pubDate>Tue, 11 Dec 2007 14:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5849#M2368</guid>
      <dc:creator>MohamedS</dc:creator>
      <dc:date>2007-12-11T14:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Row Format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5850#M2369</link>
      <description>Hi:&lt;BR /&gt;
  Here's a PROC REPORT example that formats the summary line differently.  Note how with PROC REPORT, you are changing the format in a CALL DEFINE Statement -- so each column has its own CALL DEFINE and while I have given them all DOLLAR formats, notice how INVENTORY is formatted as dollar15.0 on the summary line, while the other numeric columns are formatted with dollar15.2 -- Also notice how the format for only some of the cells for Asia, Pacific and Canada rows have been changed.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods html file='c:\temp\diff_fmt.html' style=egdefault;&lt;BR /&gt;
   &lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  title 'different format';&lt;BR /&gt;
  column region sales inventory returns;&lt;BR /&gt;
  define region /group;&lt;BR /&gt;
  define inventory/sum f=comma15.2;&lt;BR /&gt;
  define returns/ sum f=comma15.2; &lt;BR /&gt;
  define sales /sum f=comma15.2;&lt;BR /&gt;
  rbreak after /summarize;&lt;BR /&gt;
  compute sales ;&lt;BR /&gt;
    if region = 'Canada' then&lt;BR /&gt;
       call define (_col_,'FORMAT',"dollar15.2");&lt;BR /&gt;
   &lt;BR /&gt;
    if _break_ = '_RBREAK_' then&lt;BR /&gt;
      call define (_col_,'FORMAT',"dollar15.2");&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  &lt;BR /&gt;
  compute inventory ;&lt;BR /&gt;
    if region = 'Pacific' then&lt;BR /&gt;
       call define (_col_,'FORMAT',"dollar15.2");&lt;BR /&gt;
   &lt;BR /&gt;
    if _break_ = '_RBREAK_' then&lt;BR /&gt;
      call define (_col_,'FORMAT',"dollar15.0");&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  &lt;BR /&gt;
  compute returns ;&lt;BR /&gt;
    if region = 'Asia' then&lt;BR /&gt;
       call define (_col_,'FORMAT',"dollar15.2");&lt;BR /&gt;
   &lt;BR /&gt;
    if _break_ = '_RBREAK_' then&lt;BR /&gt;
      call define (_col_,'FORMAT',"dollar15.2");&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  &lt;BR /&gt;
  compute after;&lt;BR /&gt;
    call define (_row_,'STYLE','style={background=pink}');&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
You would use different syntax for PROC TABULATE if you wanted to apply a different format to a summary row. And this technique will not work for PROC PRINT at all. &lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 11 Dec 2007 23:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5850#M2369</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-12-11T23:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Row Format</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5851#M2370</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot for your Support. your answer is very helpfull.&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Mon, 17 Dec 2007 12:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Row-Format/m-p/5851#M2370</guid>
      <dc:creator>MohamedS</dc:creator>
      <dc:date>2007-12-17T12:41:08Z</dc:date>
    </item>
  </channel>
</rss>

