SAS Proc Report spacing= 选项不起作用
SAS Proc Report spacing= option not working
我正在做一些例子来学习 proc 报告的基础知识。出于某种原因,我无法使用 spacing= 选项,如何修复它以及最常用的设置列外观格式的简单选项是什么?
p.s 我正在使用 SAS Studio
proc report data = ads2;
columns subjid b c;
define subjid / display 'Subject ID' spacing=4;
define b / display 'One' spacing=4;
define c / display 'Two' spacing=4;
run;
spacing=
选项仅适用于 ODS LISTING
个目的地。
来自 DEFINE Statement
文档:
SPACING=horizontal-positions
defines the number of blank characters to leave between the column being defined and the column immediately to its left. For each column, the sum of its width and the blank characters between it and the column to its left cannot exceed the line size.
Default: 2
Restriction: This option has no effect on ODS destinations other than the LISTING destination.
开始从文档 "Using ODS Styles with PROC REPORT"
中了解有关 REPORT
样式的更多信息
Most Base SAS procedures that support ODS use one or more table templates to produce output objects. These table templates include templates for table elements: columns, headers, and footers. Each table element can specify the use of one or more style elements for various parts of the output. These style elements cannot be specified within the syntax of the procedure, but you can use customized styles for the ODS destinations that you use. For more information about customizing tables and styles, see "TEMPLATE Procedure: Creating a Style Template" in SAS Output Delivery System: Procedures Guide.
如果我没理解错你想设置单元格宽度:
proc report data=sashelp.class;
col name age sex;
define name / style(column)=[cellwidth=2in];
define age / style(column)=[cellwidth=5in];
define sex / style(column)=[cellwidth=.5in];
title "Using the CELLWIDTH= Style with PROC REPORT";
run;
我正在做一些例子来学习 proc 报告的基础知识。出于某种原因,我无法使用 spacing= 选项,如何修复它以及最常用的设置列外观格式的简单选项是什么?
p.s 我正在使用 SAS Studio
proc report data = ads2;
columns subjid b c;
define subjid / display 'Subject ID' spacing=4;
define b / display 'One' spacing=4;
define c / display 'Two' spacing=4;
run;
spacing=
选项仅适用于 ODS LISTING
个目的地。
来自 DEFINE Statement
文档:
SPACING=horizontal-positions
defines the number of blank characters to leave between the column being defined and the column immediately to its left. For each column, the sum of its width and the blank characters between it and the column to its left cannot exceed the line size.
Default: 2
Restriction: This option has no effect on ODS destinations other than the LISTING destination.
开始从文档 "Using ODS Styles with PROC REPORT"
中了解有关REPORT
样式的更多信息
Most Base SAS procedures that support ODS use one or more table templates to produce output objects. These table templates include templates for table elements: columns, headers, and footers. Each table element can specify the use of one or more style elements for various parts of the output. These style elements cannot be specified within the syntax of the procedure, but you can use customized styles for the ODS destinations that you use. For more information about customizing tables and styles, see "TEMPLATE Procedure: Creating a Style Template" in SAS Output Delivery System: Procedures Guide.
如果我没理解错你想设置单元格宽度:
proc report data=sashelp.class;
col name age sex;
define name / style(column)=[cellwidth=2in];
define age / style(column)=[cellwidth=5in];
define sex / style(column)=[cellwidth=.5in];
title "Using the CELLWIDTH= Style with PROC REPORT";
run;