BookmarkSubscribeRSS Feed
xxformat_com
Barite | Level 11

Hi,

Updated post (old post below)

 

As far as I understand msg_level option in ods excel is a printing option. It could be used to print the cells comments.

Based on that I've done some testing.

 

I've added a comment using the flyover style attribute on the John value

and a comment manually directly in the Excel file.

proc format;
    value $ chk 'John'='Flyover Example';
run;

ods excel file="&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;

 

 

excel1.JPGexcel2.JPG

First we can see that the way Excel interpret those two solutions are different.

Then I've changed the printed options

excel3.JPG

When printing two pages are printed : one with the data and one with the comment entered manually.

The comment using SAS flyover style attribute is not displayed.

page1.JPGpage2.JPG

Given that there was 3 printed options. I've tried the third one too.

excel4.JPG

Here I would get a single page in the print preview, no difference with the "None" default setting.

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.

Any comment/suggestions?

 

Old post:

As anyone an example of use of the msg_level option in ods excel.

 

According to the SAS Online doc (https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm)

(MSG_LEVEL= NO NOTES | NONE) suppresses messages from Excel.

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.

Do you have any idea/example?

Cheers

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 433 views
  • 0 likes
  • 1 in conversation