Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SAS,更改put语句中的字体大小_Sas_Put - Fatal编程技术网

SAS,更改put语句中的字体大小

SAS,更改put语句中的字体大小,sas,put,Sas,Put,如何更改put语句中引号的字体大小和颜色?通常,您可能希望在标题语句中使用图形选项 但是,ODS输出可以通过escapechar引入的内联样式指令进行修改 data _NULL_; file print; if e then put 'No observations'; set TableA end=e; put 'here is the table A'; stop; run; 你在哪里指导印刷?如果你只是使用标准的列表输出,那么你就不需要了,因为那只

如何更改put语句中引号的字体大小和颜色?

通常,您可能希望在标题语句中使用图形选项

但是,ODS输出可以通过
escapechar
引入的内联样式指令进行修改

data _NULL_;
    file print;
    if e then put 'No observations';
    set TableA end=e;
    put 'here is the table A';
    stop;
run;

你在哪里指导印刷?如果你只是使用标准的列表输出,那么你就不需要了,因为那只是一个纯文本文件。我最终会将它们输出为pdf文件。那么你读过关于使用ODS处理数据、null步骤和PUT语句的内容吗?我想你不能处理PUT语句。查看PROC ODS文本或PROC报告或打印。如果您的数据集有0个观察值,那么您的代码就可以工作,但如果它根本不存在,代码就不能工作。对于这种类型的条件逻辑,通常使用宏来代替。我将读取表A,有时它是空的,有时它包含OB行。
ods pdf file='want.pdf';

ods escapechar = '^';

* standard options for title statement;
title color=white bcolor=blue bold italic height=36pt "Title for want";

data _null_;
  file print;
  put '^{style [fontsize=24pt color=Red]Hi}';  * inline styling;
run;

ods pdf close;