BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Smijoss
Fluorite | Level 6

Hi,

For the cases where I do not have a Footnote, is there a way I can remove that space from the report.

Here is an example of what i am trying to achieve in the Stored process using excel Addin..

In the output , although I do not have a footnote, it leaves the row 8 and row 9 as blank.

Also can  is there a way i can remove that black line after each proc report  or change its color.

Please find the log file attached.  Thanks in advance. 

%MACRO CLASS_PRINT(SEX);

  PROC REPORT DATA=SASHELP.CLASS (WHERE=(SEX="&SEX.") OBS=3);

  TITLE "TEST FOOTNOTE SPACING";

  RUN;

%MEND;

%CLASS_PRINT(M);

%CLASS_PRINT(F);

screen1.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  Since you say you are using a Stored Process and the SAS Add-in for Microsoft office, the behavior of the stored process will be determined by the result type you have specified - -either inside the Add-in using SAS --> Options --> Results (did you pick SAS Report, HTML or CSV as the result type) or will be determined by the destination you specify inside the stored process code (for example, your code has an override for &_ODSDEST=MSOFFICE2K before your %STPBEGIN; statement in the stored process) -- both the destination and the style being used will have an impact on the way the output looks in the SAS Add-in for Microsoft Office.
    

  The big black line is a horizontal rule, generally, that is put into the output because you use a style for your output that specifies a horizontal rule as the "delimiter" between logical pages of output. For example, if you compare these 2 different programs (NOT as a stored process), you will see that the Miminal style has a horizontal rule and the Normal style does not have a horizontal rule. So you could  get rid of the line by changing the style used for your stored process.

cynthia


compare_two_outputs_in_Excel.pngcompare_two_outputs_with_horizontal_rule.png

View solution in original post

4 REPLIES 4
Cynthia_sas
SAS Super FREQ

Hi:

  Since you say you are using a Stored Process and the SAS Add-in for Microsoft office, the behavior of the stored process will be determined by the result type you have specified - -either inside the Add-in using SAS --> Options --> Results (did you pick SAS Report, HTML or CSV as the result type) or will be determined by the destination you specify inside the stored process code (for example, your code has an override for &_ODSDEST=MSOFFICE2K before your %STPBEGIN; statement in the stored process) -- both the destination and the style being used will have an impact on the way the output looks in the SAS Add-in for Microsoft Office.
    

  The big black line is a horizontal rule, generally, that is put into the output because you use a style for your output that specifies a horizontal rule as the "delimiter" between logical pages of output. For example, if you compare these 2 different programs (NOT as a stored process), you will see that the Miminal style has a horizontal rule and the Normal style does not have a horizontal rule. So you could  get rid of the line by changing the style used for your stored process.

cynthia


compare_two_outputs_in_Excel.pngcompare_two_outputs_with_horizontal_rule.png
Smijoss
Fluorite | Level 6

Thank you so much Cynthia.  I appreciate your quick response. Thanks again and have a great day ahead.

I changed the values to the following and now my report looks much better ...

screen1.JPG

Smijoss
Fluorite | Level 6

Cynthia,

By any chance do you have an example of overriding the _ODSSTYLE   within the stored process so i can use this style only for specific report.

Thanks in advance

Cynthia_sas
SAS Super FREQ

Hi:

You will need to explicitly code an override statement into your stored process code. If SAS Enterprise Guide created your stored process, then you will need to modify the code generated by Enterprise Guide. In general overrides work this way:

%let _odsdest=msoffice2k;

%let _odsstyle = minimal;

%let _odsstylesheet=;

%stpbegin;

*** your code;

%stpend;

  However, when Enterprise Guide creates a stored process, it puts the needed macro variables around the code. To modify the code you will need to turn off the choices in the EG Stored Process Wizard that automatically add code.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1836 views
  • 6 likes
  • 2 in conversation