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 (" ")

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1962 views
  • 0 likes
  • 2 in conversation