Hello Experts,
I'm wonderign how to put the spaces befor "Fixes" and "Variables" in proc odstext in my e-mail
proc odstext;
p "Bonjour,";
p "";
p "Pour lalalalla.";
p "";
p "Ces lalala:";
p " - Fixes lalala,";
p " - Variables, lalalal.";
p "";
p "";
p "Bien cordialement,";
p "";
run;
ods _all_ close;
filename myemail clear;
Thank you for your help !
Finally, I found this : https://communities.sas.com/t5/SAS-Programming/Proc-ODS-text-in-PowerPoint/td-p/354175
%let spaces=^{unicode 00A0}^{unicode 00A0}^{unicode 00A0}^{unicode 00A0}^{unicode 00A0};
proc odstext;
p "Hello";
p "&spaces Hello";
p "&spaces &spaces Hello";
run;
Are you sending a pure-text mail or html?
I used the style-option asis=on when creating excel files with strange indentation, not sure if this work with html + mail.
Use TAB character instead ?
p " '09'x - Fixes lalala,"; p " '09'x - Variables, lalalal.";
Finally, I found this : https://communities.sas.com/t5/SAS-Programming/Proc-ODS-text-in-PowerPoint/td-p/354175
%let spaces=^{unicode 00A0}^{unicode 00A0}^{unicode 00A0}^{unicode 00A0}^{unicode 00A0};
proc odstext;
p "Hello";
p "&spaces Hello";
p "&spaces &spaces Hello";
run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
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.