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
Rhodochrosite | Level 12
PUT '<html>&nbsp;"HELLO"</html>';

View solution in original post

5 REPLIES 5
AhmedAl_Attar
Rhodochrosite | Level 12
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
Rhodochrosite | Level 12
Ensure the &NBSP; is inside a single quote (' ') and not double-quote (" ")

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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