The background colors of 'Header', 'Footer', 'RowHeader', and 'RowFooter' classes are set to CXdae4f3.
The 'graph' class has its attribute priority set to 'none'.
The colors of text, reference lines, borders, outlines, grids, and axes are customized under 'GraphColors'.
The appearance of tables is modified to include thicker borders, cell spacing, and a specific border color (cx919191).
The thickness of various graph lines (borders, axes, outlines, data, box plots, grids) is uniformly set to 2px for better visibility.
Data Analysis
Type : INTERNAL_CREATION
The script does not process external data. It defines an internal style object that will then be used by SAS to format outputs. The `store=Bookdata.Template` clause indicates that the style definition will be stored in the `Bookdata` library, but does not imply the use of input data from this library for the style definition itself.
1 Code Block
PROC TEMPLATE
Explanation : This block uses the `PROC TEMPLATE` procedure to create a new ODS style template. The initial `libname BookData` is a commented instruction to the user to define a library, but does not affect the execution of `PROC TEMPLATE` itself. The `customSapphire` style is defined as a child of the `styles.sapphire` style. It specifies custom attributes for various ODS classes (Header, Footer, RowHeader, RowFooter, graph, GraphColors, table, GraphBorderLines, etc.), allowing control over the appearance of SAS-generated reports and graphs. Colors are defined using hexadecimal codes (CX).
Copied!
libname BookData "--insert path to SAS data sets/BookData library here if not already assigned--";
proc template;
define style customSapphire/store=Bookdata.Template;
parent = styles.sapphire;
class Header /
backgroundcolor=CXdae4f3;
class Footer /
backgroundcolor=CXdae4f3;
class RowHeader /
backgroundcolor=CXdae4f3;
class RowFooter /
backgroundcolor=CXdae4f3;
class graph / attrpriority="none";
class GraphColors /
'gtext' = black
'gtextt' = black
'greferencelines'= cx808080
'gborderlines' = cx000000
'goutlines'= cx000000
'ggrid'= CX797c7e
'gaxis'= cx000000;
style table from table /
borderwidth=3px
cellpadding=3pt
borderspacing=.05pt
frame=box
bordercolor=cx919191
bordercollapse=collapse;
class GraphBorderLines / lineThickness=2px color=CX000000;
class GraphAxisLines / lineThickness=2px color=CX000000;
class GraphOutLines / lineThickness=2px color=cx000000;
class GraphAnnoLines / lineThickness=2px color=cx000000;
class GraphReference / lineThickness=2px color=cx000000;
class GraphWalls / lineThickness=2px;
class GraphDataDefault / lineThickness=2px;
class GraphBoxWhisker / lineThickness=2px;
class GraphBoxMedian / lineThickness=2px;
class GraphOther / lineThickness=2px;
class GraphConfidence / lineThickness=2px;
class GraphAnnoShape / lineThickness=2px;
class GraphDataNodeDefault /
linethickness = 2px
linestyle = 1;
class GraphOutliers / linethickness=2px linestyle=1;
class GraphGridLines / lineThickness=2px linestyle = 1 color=cx000000;
end;
run;
1
LIBNAME BookData "--insert path to SAS data sets/BookData library here if not already assigned--";
class GraphBorderLines / lineThickness=2px color=CX000000;
34
class GraphAxisLines / lineThickness=2px color=CX000000;
35
class GraphOutLines / lineThickness=2px color=cx000000;
36
class GraphAnnoLines / lineThickness=2px color=cx000000;
37
class GraphReference / lineThickness=2px color=cx000000;
38
class GraphWalls / lineThickness=2px;
39
class GraphDataDefault / lineThickness=2px;
40
class GraphBoxWhisker / lineThickness=2px;
41
class GraphBoxMedian / lineThickness=2px;
42
class GraphOther / lineThickness=2px;
43
class GraphConfidence / lineThickness=2px;
44
class GraphAnnoShape / lineThickness=2px;
45
class GraphDataNodeDefault /
46
linethickness = 2px
47
linestyle = 1;
48
class GraphOutliers / linethickness=2px linestyle=1;
49
class GraphGridLines / lineThickness=2px linestyle = 1 color=cx000000;
50
END;
51
52
RUN;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.