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

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 !

1 ACCEPTED SOLUTION

Accepted Solutions
SASdevAnneMarie
Barite | Level 11

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;

View solution in original post

6 REPLIES 6
andreas_lds
Jade | Level 19

Are you sending a pure-text mail or html?

SASdevAnneMarie
Barite | Level 11
ods listing close;

it's html:
ods html body=myemail options(pagebreak="no")
rs=none style=minimal;

options nocenter nobyline pagesize=max;
ods escapechar='^';
data _null_;
andreas_lds
Jade | Level 19

I used the style-option asis=on when creating excel files with strange indentation, not sure if this work with html + mail.

Ksharp
Super User

Use TAB character instead ?

 

p "  '09'x     - Fixes lalala,";
p "  '09'x    - Variables, lalalal.";
SASdevAnneMarie
Barite | Level 11

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;
viviwan
Calcite | Level 5
This is exactly what I was looking for, thanks a lot for sharing!

sas-innovate-white.png

Register Today!

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.

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
  • 6 replies
  • 2115 views
  • 2 likes
  • 4 in conversation