The SAS Output Delivery System and reporting techniques

How to restore the original templates in sashelp.tmplmst?

Reply
Contributor
Posts: 43

How to restore the original templates in sashelp.tmplmst?

Hi,
I want to have some trial tests on original templates.
Is there an easy way to restore original templates in sashelp.tmplmst?

-Kevin
Super Contributor
Posts: 273

Re: How to restore the original templates in sashelp.tmplmst?

Kevin,
I am surprised you ask this
as modification or adding of templates are not going to the basic protected
master store; sashelp.tmplmst is in read mode!
If you have managed some special modification of this basic store
then i think you have to reinstall Sas.

Generally a template is going to the store sasuser.templat which is in update mode
and you have also a possibility to redirect them to a personnal template store.

ods path my.tplstore(update) sashelp.tmpmst(read);

see
http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002567574.htm
and
http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002233323.htm

HTH
Andre
SAS Super FREQ
Posts: 8,743

Re: How to restore the original templates in sashelp.tmplmst?

Hi:
As Andre said, unless you have somehow corrupted SASHELP.TMPLMST, you should be able to test with the SAS-installed templates with:
[pre]
ODS PATH SASHELP.TMPLMST(READ);
[/pre]

This will remove all other template stores from the search path and will ONLY use the SAS-supplied templates.

If you -did- somehow write to SASHELP.TMPLMST or have otherwise corrupted the SAS-supplied template store, then your best bet is to work with Tech Support. You may not need to reinstall SAS. I have seen that happen, but only as a last resort.

cynthia
Contributor
Posts: 43

Re: How to restore the original templates in sashelp.tmplmst?

Thank you for your input.

I remember that when registry file corrupt, I can delete all files (e.g. c:\Documents and Settings\userid\My Documents\My SAS Files\9.x) and then recreate them by invocating new SAS session.

Can I use this to recreate the templates?

-Kevin
Super Contributor
Posts: 394

Re: How to restore the original templates in sashelp.tmplmst?

No. The standard templates (the ones in sashelp.tmplmst) are installed as part of your normal SAS installation. To recreate them you'll have to repeat at least part of the SAS install. Tech. Support is your best bet here.
Contributor
Posts: 43

Re: How to restore the original templates in sashelp.tmplmst?

Thank you for the explanation.
Ask a Question
Discussion stats
  • 5 replies
  • 203 views
  • 0 likes
  • 4 in conversation