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