我可以在不使用 "ERROR-"/"WARNING-"/"NOTE-" 的情况下更改 PUT 语句的文本颜色吗?

Can I change the color of text from PUT statement without using "ERROR-"/"WARNING-"/"NOTE-"?

我知道以下内容:

data _NULL_;
  put "This is BLACK";
  put "NOTE: This is BLUE";
  put "NOTE- This is BLUE and has no NOTE";
  put "WARNING: This is GREEN";
  put "WARNING- GREEN, no WARNING";
  put "ERROR: This is RED";
  put "ERROR- RED, no ERROR";
run;

但我想知道是否有一种方法可以控制日志中结果文本的颜色与 notes/errors/warnings/etc 的颜色不同。换句话说,我想在不更改日志打印的其他内容的颜色的情况下执行此操作。

我相信这在 communities.sas.com 前一段时间已经讨论过,结论是否定的。您不能为写入日志的特定用户生成文本指定颜色。

https://communities.sas.com/t5/SAS-Enterprise-Guide/Colorized-Text-in-the-EG-Log/td-p/251828

https://communities.sas.com/t5/SAS-Procedures/can-we-change-the-color-of-log-output/td-p/83991