<?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: proc report  : cancel style in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-cancel-style/m-p/836296#M25954</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt;Regarding your questions:&lt;BR /&gt;1) The default style for ODS EXCEL is typically the HTMLBLUE style. If you want no style, then in the ODS EXCEL statement, after the FILE= option, you would specify &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;STYLE=MINIMAL&lt;/FONT&gt;&lt;/STRONG&gt; -- that gives you basically black and white font with no colors.&lt;BR /&gt;2) PROC REPORT would support a FORMAT statement like this:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;format _numeric_ best12.2 _character_ $25.;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;without needing macro variables or something like this with either 1 macro variable or multiple macro variables:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;format &amp;amp;list1 dollar14. &amp;amp;list2 comma6. &amp;amp;list3 $25.;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Otherwise, you can list multiple variables on a DEFINE statement but for your stated purpose of changing the formats for a group of variables, then the FORMAT statement method would serve that purpose better.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Sat, 01 Oct 2022 15:03:57 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2022-10-01T15:03:57Z</dc:date>
    <item>
      <title>proc report  : cancel style</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-cancel-style/m-p/836293#M25953</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have two questions about proc report with ods excel&lt;/P&gt;&lt;P&gt;1. When i run simple proc report using ods excel i get some default style, like "blue style", but i want some basic style - without style &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; How can i do it?&lt;/P&gt;&lt;P&gt;2. Does proc report enable us in on define statement write multiple variables. I have macro variable that contains all variables in the dataset&amp;nbsp; i want to export, but i want to do format to only numeric variables in the define statement. What can i do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Alexey&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 14:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-cancel-style/m-p/836293#M25953</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2022-10-01T14:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc report  : cancel style</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-cancel-style/m-p/836296#M25954</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Regarding your questions:&lt;BR /&gt;1) The default style for ODS EXCEL is typically the HTMLBLUE style. If you want no style, then in the ODS EXCEL statement, after the FILE= option, you would specify &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;STYLE=MINIMAL&lt;/FONT&gt;&lt;/STRONG&gt; -- that gives you basically black and white font with no colors.&lt;BR /&gt;2) PROC REPORT would support a FORMAT statement like this:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;format _numeric_ best12.2 _character_ $25.;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;without needing macro variables or something like this with either 1 macro variable or multiple macro variables:&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;format &amp;amp;list1 dollar14. &amp;amp;list2 comma6. &amp;amp;list3 $25.;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Otherwise, you can list multiple variables on a DEFINE statement but for your stated purpose of changing the formats for a group of variables, then the FORMAT statement method would serve that purpose better.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 15:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-cancel-style/m-p/836296#M25954</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-10-01T15:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc report  : cancel style</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-cancel-style/m-p/836314#M25955</link>
      <description>Thank you for your answer. I did what you said and it worked excellent.&lt;BR /&gt;But the result i got in excel is not result in dataset in proc report. Dataset contains more than 100 rows, and in excel i get only one row and i don't understand the values i saw. What i did wrong with proc report? And how can i add an option bold of header?&lt;BR /&gt;&lt;BR /&gt;I write the following syntax :&lt;BR /&gt;&lt;BR /&gt;ods excel file "..." style=minimal options(sheet_name="best");&lt;BR /&gt;proc report data=test;&lt;BR /&gt;column &amp;amp;varlist.;&lt;BR /&gt;format _numeric_ 12.2;&lt;BR /&gt;run;&lt;BR /&gt;ods close;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Oct 2022 18:02:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-cancel-style/m-p/836314#M25955</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2022-10-01T18:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc report  : cancel style</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-cancel-style/m-p/836329#M25956</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you have all numeric variables listed on the COLUMN statement, then the default behavior of PROC REPORT is to treat them as ANALYSIS usage with a default statistic of SUM, which means that all of your numeric columns in the rows will be summarized down to 1 row unless you change the usage of the numeric columns to DISPLAY or list a character variable or a DISPLAY item on the COLUMN statement before the numeric variables. Like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1664661570443.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75784i7FA5330D440F258F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1664661570443.png" alt="Cynthia_sas_0-1664661570443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;SASHELP.CLASS has 19 rows. As you can see in Report #1, all 19 rows are summarized down to 1 row. But in Report #2, with a usage of DISPLAY for the numeric variables, all 19 rows are displayed. In a similar way, with Report #3, listing a character variable first on the COLUMN statement and defining the usage as DISPLAY also causes all 19 rows to be displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Learning about PROC TABULATE and PROC REPORT and how to change the usages in the DEFINE statement for PROC REPORT is part of our Report Writing class:&amp;nbsp;&lt;A href="https://support.sas.com/edu/schedules.html?crs=RPT1&amp;amp;ctry=US" target="_blank" rel="noopener"&gt;https://support.sas.com/edu/schedules.html?crs=RPT1&amp;amp;ctry=US&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this explains why your report did what it did.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Also just a few comments about your code -- which could be caused by typing and not copying/pasting the working code:&lt;/P&gt;
&lt;P&gt;1) the ODS EXCEL statement should have an = sign after FILE:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods excel file&lt;FONT color="#FF00FF"&gt;=&lt;/FONT&gt;'c:\temp\myreport.xlsx' style=minimal options(sheet_name='myname');&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;... ... code ... ...&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;2) then the ending would be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods &lt;FONT color="#FF00FF"&gt;excel&lt;/FONT&gt; close;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;NOT just the statement you show (&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;ods close;&lt;/STRONG&gt;&lt;/FONT&gt;), which would be incorrect.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 22:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/proc-report-cancel-style/m-p/836329#M25956</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-10-01T22:08:15Z</dc:date>
    </item>
  </channel>
</rss>

