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

Hello,

 

I'm creating the html e-mail via SAS. Do you know, please, how to add the SPACE before "Hello"?:

 

FILENAME outmail EMAIL
SUBJECT= "XXXXXX"
type='text/html'
FROM= " XXXXXX "
TO= (
)
CC= (
‘XXXXXX’)
;

data _null_;
file outmail;

if _N_=1 then
do;
PUT '<html>"HELLO"</html>';
PUT '<html><br></html>';
end;
run;

filename outmail clear;

 

Thank you very much!

1 ACCEPTED SOLUTION

Accepted Solutions
AhmedAl_Attar
Ammonite | Level 13
PUT '<html>&nbsp;"HELLO"</html>';

View solution in original post

5 REPLIES 5
AhmedAl_Attar
Ammonite | Level 13
PUT '<html>&nbsp;"HELLO"</html>';
SASdevAnneMarie
Barite | Level 11
Thank you very much, Ahmed!
It works!

SASdevAnneMarie
Barite | Level 11

I have a WARNING: Apparent symbolic reference NBSP not resolved.

It is not blocking.

Maybe you know some solution to avoid that?

 

Thank you!

AhmedAl_Attar
Ammonite | Level 13
Ensure the &NBSP; is inside a single quote (' ') and not double-quote (" ")

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 5 replies
  • 2231 views
  • 0 likes
  • 2 in conversation