<?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 msg_level optionin ods excel in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/msg-level-optionin-ods-excel/m-p/777476#M25438</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Updated post (old post below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understand msg_level option in ods excel is a printing option. It could be used to print the cells comments.&lt;/P&gt;&lt;P&gt;Based on that I've done some testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added a comment using the flyover style attribute on the John value&lt;/P&gt;&lt;P&gt;and a comment manually directly in the Excel file.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc format;
    value $ chk 'John'='Flyover Example';
run;

ods excel file="&amp;amp;xxtest./reporting/ods_excel_test.xlsx";

proc report data=sashelp.class;
    column name age;
    define name / display style(column)=[flyover=$chk.];
    define age  / display;
run
;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel1.JPG" style="width: 180px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65252i10915B626F900F46/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel1.JPG" alt="excel1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel2.JPG" style="width: 374px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65258iDA78D087048F6B2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel2.JPG" alt="excel2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;First we can see that the way Excel interpret those two solutions are different.&lt;/P&gt;&lt;P&gt;Then I've changed the printed options&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel3.JPG" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65254iB64AE780BB9CFA47/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel3.JPG" alt="excel3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When printing two pages are printed : one with the data and one with the comment entered manually.&lt;/P&gt;&lt;P&gt;The comment using SAS flyover style attribute is not displayed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="page1.JPG" style="width: 156px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65256i1CF29239E660CD22/image-size/small?v=v2&amp;amp;px=200" role="button" title="page1.JPG" alt="page1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="page2.JPG" style="width: 155px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65255iD60908DDF4CA6C99/image-size/small?v=v2&amp;amp;px=200" role="button" title="page2.JPG" alt="page2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Given that there was 3 printed options. I've tried the third one too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel4.JPG" style="width: 639px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65257i9FAA58342A18483E/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel4.JPG" alt="excel4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here I would get a single page in the print preview, no difference with the "None" default setting.&lt;/P&gt;&lt;P&gt;Based on that I've not even tried msg_level as I'm not even sure what is the real working value beside NONE. NO NOTES doesn't really make sense to me in this context.&lt;/P&gt;&lt;P&gt;Any comment/suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Old post:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As anyone an example of use of the msg_level option in ods excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the SAS Online doc (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(MSG_LEVEL=&lt;SPAN class=""&gt; NO NOTES&lt;/SPAN&gt;&lt;SPAN class=""&gt; | NONE&lt;/SPAN&gt;) suppresses messages from Excel.&lt;/P&gt;&lt;P&gt;But 1/ quotations marks are needed (error message otherwise) 2/ I'm not really sure what is meant Excel messages and even how to add them using ods excel before being able to remove them with msg_level.&lt;/P&gt;&lt;P&gt;Do you have any idea/example?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 30 Oct 2021 09:56:14 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2021-10-30T09:56:14Z</dc:date>
    <item>
      <title>msg_level optionin ods excel</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/msg-level-optionin-ods-excel/m-p/777476#M25438</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Updated post (old post below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understand msg_level option in ods excel is a printing option. It could be used to print the cells comments.&lt;/P&gt;&lt;P&gt;Based on that I've done some testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've added a comment using the flyover style attribute on the John value&lt;/P&gt;&lt;P&gt;and a comment manually directly in the Excel file.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc format;
    value $ chk 'John'='Flyover Example';
run;

ods excel file="&amp;amp;xxtest./reporting/ods_excel_test.xlsx";

proc report data=sashelp.class;
    column name age;
    define name / display style(column)=[flyover=$chk.];
    define age  / display;
run
;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel1.JPG" style="width: 180px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65252i10915B626F900F46/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel1.JPG" alt="excel1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel2.JPG" style="width: 374px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65258iDA78D087048F6B2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel2.JPG" alt="excel2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;First we can see that the way Excel interpret those two solutions are different.&lt;/P&gt;&lt;P&gt;Then I've changed the printed options&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel3.JPG" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65254iB64AE780BB9CFA47/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel3.JPG" alt="excel3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When printing two pages are printed : one with the data and one with the comment entered manually.&lt;/P&gt;&lt;P&gt;The comment using SAS flyover style attribute is not displayed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="page1.JPG" style="width: 156px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65256i1CF29239E660CD22/image-size/small?v=v2&amp;amp;px=200" role="button" title="page1.JPG" alt="page1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="page2.JPG" style="width: 155px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65255iD60908DDF4CA6C99/image-size/small?v=v2&amp;amp;px=200" role="button" title="page2.JPG" alt="page2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Given that there was 3 printed options. I've tried the third one too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel4.JPG" style="width: 639px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65257i9FAA58342A18483E/image-size/large?v=v2&amp;amp;px=999" role="button" title="excel4.JPG" alt="excel4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here I would get a single page in the print preview, no difference with the "None" default setting.&lt;/P&gt;&lt;P&gt;Based on that I've not even tried msg_level as I'm not even sure what is the real working value beside NONE. NO NOTES doesn't really make sense to me in this context.&lt;/P&gt;&lt;P&gt;Any comment/suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Old post:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As anyone an example of use of the msg_level option in ods excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the SAS Online doc (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(MSG_LEVEL=&lt;SPAN class=""&gt; NO NOTES&lt;/SPAN&gt;&lt;SPAN class=""&gt; | NONE&lt;/SPAN&gt;) suppresses messages from Excel.&lt;/P&gt;&lt;P&gt;But 1/ quotations marks are needed (error message otherwise) 2/ I'm not really sure what is meant Excel messages and even how to add them using ods excel before being able to remove them with msg_level.&lt;/P&gt;&lt;P&gt;Do you have any idea/example?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Oct 2021 09:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/msg-level-optionin-ods-excel/m-p/777476#M25438</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2021-10-30T09:56:14Z</dc:date>
    </item>
  </channel>
</rss>

