Hi everyone,
I'd like to figure out
1. why #m can't indent the variable value as expected. I can't see any problem with my code.
2. #w doesn't support leading nonbreaking space in RTF, right?
Any thoughts would be appreciated! Thanks in advance!
ods escapechar='#';
/*1. why #m doesn't indent as expected. I can't see any problem with my code*/
data escape_m;
input var $50.;
cards;
Na#mme#-2nXiaoMing
Co#mntact#-2n(010)-xxxx-xxxx
;
run;
ods rtf file='c:\users\xiaohua\desktop\escape_m.rtf';
proc report data=escape_m;
column _all_;
run;
ods rtf close;
/*2. #_ doesn't support leading nonbreaking space, right?*/
data nb;
input var $40.;
cards;
Age
#_#_#_#_N_Miss
Mean#_#_#_#_sd
;
run;
ods rtf file='c:\users\xiaohua\desktop\nb.rtf';
proc report data=nb;
column _all_;
run;
ods rtf close;
After trying :
1. #m works in ODS PDF but not in HTML and RTF
2. Leading space for #_: works in HTML and PDF but not RTF
This creates a leading non-breaking space.
data NB;
VAR='{\~\~Mean\~ssd}';
run;
Edited by @ChrisNZ . Duplicate content removed.
See my syntax for the correct implementation of the effect you are seeking.
Moved to ODS as wished. 🙂
After trying :
1. #m works in ODS PDF but not in HTML and RTF
2. Leading space for #_: works in HTML and PDF but not RTF
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.
Ready to level-up your skills? Choose your own adventure.