Customizing the Kaplan-Meier Survival Plot


SAS Item Stores

In other sections of this chapter, you submit PROC TEMPLATE statements (either directly or through macros) to compile and save graph and style templates. Compiled templates are stored in special SAS files called item stores. Assuming that you have not modified your ODS path with an ODS PATH statement, the templates that you compile are stored in an item store in the Sasuser library. By default, all templates that SAS provides are stored in an item store in the Sashelp library. By default, the Sashelp item store has read access only; you cannot write to it. By default, the Sasuser item store has update access; you can both read and write to it. Caution: Never set the Sashelp item store to update or write access. If you do, and if you have administrator privileges on your computer, you could corrupt the Sashelp item store.

Assuming that the default ODS path is used, ODS first looks for a template in the Sasuser item store. If it does not find the template there, ODS next looks for the template in the Sashelp item store. Files in the Sasuser library persist across SAS sessions until you delete them. You can run the following step to delete the entire Sasuser item store (including all compiled graph and style templates that you added or modified) so that ODS uses only the templates the SAS System supplies:

ods path sashelp.tmplmst(read);
proc datasets library=sasuser nolist;
   delete templat(memtype=itemstor);
run;
ods path reset;

For more information about the ODS path and SAS item stores, see Chapter 21: Statistical Graphics Using ODS.

Table 23.3: Style Elements

AfterCaption

GraphAnnoText

GraphHeaderBackground

List3

Batch

GraphAxisLines

GraphHistogram

ListItem

Body

GraphBackground

GraphInitial

Note

BodyDate

GraphBand

GraphLabel2Text

NoteBanner

ByContentFolder

GraphBar

GraphLabelText

NoteContentFixed

Byline

GraphBlock

GraphLegendBackground

Output

BylineContainer

GraphBlockHeader

GraphMissing

PageNo

Caption

GraphBorderLines

GraphOther

Pages

Color_list

GraphBox

GraphOutlier

PagesProcLabel

Colors

GraphBoxMean

GraphOutlines

PagesTitle

Container

GraphBoxMedian

GraphOverflow

Paragraph

ContentFolder

GraphBoxWhisker

GraphPhaseBox

Parskip

ContentProcLabel

GraphClipping

GraphPrediction

PrePage

ContentTitle

GraphColors

GraphPredictionLimits

ProcTitle

Contents

GraphConfidence

GraphReference

ProcTitleFixed

Continued

GraphConfidence2

GraphRunTest

RowFooter

Data

GraphConnectLine

GraphSelection

RowFooterEmphasis

DataEmphasis

GraphContour

GraphStars

RowFooterEmphasisFixed

DataEmphasisFixed

GraphControlLimits

GraphTitle1Text

RowFooterFixed

DataFixed

GraphData1

GraphTitleText

RowFooterStrong

DataStrong

GraphData2

GraphUnderflow

RowFooterStrongFixed

DataStrongFixed

GraphData3

GraphUnicodeText

RowHeader

Date

GraphData4

GraphValueText

RowHeaderEmphasis

Document

GraphData5

GraphWalls

RowHeaderEmphasisFixed

DropShadowStyle

GraphData6

GraphZoneA

RowHeaderFixed

ErrorBanner

GraphData7

GraphZoneB

RowHeaderStrong

ErrorContentFixed

GraphData8

GraphZoneC

RowHeaderStrongFixed

ExtendedPage

GraphData9

Header

SysTitleAndFooterContainer

FatalBanner

GraphData10

HeaderEmphasis

SystemFooter

FatalContentFixed

GraphData11

HeaderEmphasisFixed

SystemTitle

Fonts

GraphData12

HeaderFixed

Table

Footer

GraphDataDefault

HeaderStrong

ThreeColorAltRamp

FooterEmphasis

GraphDataText

HeaderStrongFixed

ThreeColorRamp

FooterEmphasisFixed

GraphEllipse

HeadersAndFooters

TitleAndNoteContainer

FooterFixed

GraphError

Index

TitlesAndFooters

FooterStrong

GraphFinal

IndexItem

TwoColorAltRamp

FooterStrongFixed

GraphFit

IndexProcName

TwoColorRamp

Frame

GraphFit2

IndexTitle

UserText

Graph

GraphFloor

LayoutContainer

WarnBanner

GraphAltBlock

GraphFonts

LineContent

WarnContentFixed

GraphAnnoLine

GraphFootnoteText

List

 

GraphAnnoShape

GraphGridLines

List2