使用回车格式化 SAS 电子邮件 return

formatting SAS e-mailing with carriage return

我想用 PUT 命令输出回车符 return,但我做不到。这是我目前的电子邮件代码示例。

data _null_;
     file tmp;
     put "Hello, \n \n";
     put "This is a test of carriage return.";
run;

Filename tmp Email
Subject="SAS email"
To = ("myself@website.com")
CT = "text/html";

但是,收到的邮件是这样的:

Hello, \n \n This is a test of carriage return.

您可以为此使用正斜杠:

data _null_;
     put "Hello," / /;
     put "This is a test of carriage return.";
run;

记录here,在正斜线指针控制下。

如果是 HTML 格式的电子邮件,您还可以使用 <BR><P> 标签。例如

put "<BR>";