Using Customized Templates

When you create ODS output (either graphs or tables), ODS searches sequentially through each template store in the template search path for a template that matches the one requested. If you have not changed the default template search path, then ODS searches the Sasuser.Templat store first, then Sashelp.Tmplmst. ODS uses the first template that it finds with the requested name. Note: Templates with the same name can exist in more than one template store.

The ODS PATH statement specifies the template stores to search, as well as the order in which to search them. You can change the default template search path by using the ODS PATH statement. For example, the following statement sets the template search path so that the template store Work.Mystore is searched first, followed by Sashelp.Tmplmst:

ods path work.mystore(update) sashelp.tmplmst(read);

The UPDATE option provides update access as well as read access to Work.Mystore. The READ option provides read-only access to Sashelp.Tmplmst. With this path, the template store Sasuser.Templat is no longer searched. You can verify this with the following statement:

ods path show;

The log messages generated by the preceding statement are as follows:

   Current ODS PATH list is:

   1. WORK.MYSTORE(UPDATE)
   2. SASHELP.TMPLMST(READ)

For more information, see the SAS Output Delivery System: User's Guide and the SAS Graph Template Language: User's Guide. Example 22.1 illustrates all the steps of displaying, editing, saving, and using customized templates.