DATA Step, Macro, Functions and more

How do I Reset to Factory Default ODS Styles?

Accepted Solution Solved
Reply
Highlighted
Occasional Contributor
Posts: 9
Accepted Solution

How do I Reset to Factory Default ODS Styles?

Playing around with proc template, I accidentally overwrote a couple of the base SAS styles (HTMLBlue and BarrettsBlue), basically applying the parent style printer to both, which replaced everything in them.

 

Aside from a re-installation of the program, is there some easy way to restore the set of factory-issued SAS ODS styles?

 

Feel like a dunce for having done this, but I'm hoping there's an easy fix that's just lost on me.

 

Thanks in advance!
Ian


Accepted Solutions
Solution
Thursday
SAS Super FREQ
Posts: 9,252

Re: How do I Reset to Factory Default ODS Styles?

[ Edited ]

Hi, well, it used to be that if you did this the ONLY way to get it back was to reinstall SAS.

However, one thing to try is to close down SAS completely, and find the tmplmst.sas7bitm file (in SASHELP) that you changed (this is the template store for all of the SAS-supplied templates) and delete it.

Then copy the tmplmst.sas7bitm file from someone who has the same type of install as you do. In other words, if you have 64 bit SAS, then get the file from someone who also has 64 bit SAS; or vice versa if you have 32 bit SAS. Then put the tmplmst.sas7bitm file in the SAME location that you deleted it from.

If that doesn't work, then you have to reinstall SAS, unless Tech Support has a better workaround.

This is why you NEVER, NEVER, NEVER, NEVER, NEVER update templates in SASHELP.TMPLMST, but ALWAYS define a path so that the template store is READ access, like this:

ods path work.mytemp(update)
         sasuser.templat(update)
         sashelp.tmplmst(read);

To avoid writing over the SAS-supplied templates.

Cynthia

View solution in original post


All Replies
Solution
Thursday
SAS Super FREQ
Posts: 9,252

Re: How do I Reset to Factory Default ODS Styles?

[ Edited ]

Hi, well, it used to be that if you did this the ONLY way to get it back was to reinstall SAS.

However, one thing to try is to close down SAS completely, and find the tmplmst.sas7bitm file (in SASHELP) that you changed (this is the template store for all of the SAS-supplied templates) and delete it.

Then copy the tmplmst.sas7bitm file from someone who has the same type of install as you do. In other words, if you have 64 bit SAS, then get the file from someone who also has 64 bit SAS; or vice versa if you have 32 bit SAS. Then put the tmplmst.sas7bitm file in the SAME location that you deleted it from.

If that doesn't work, then you have to reinstall SAS, unless Tech Support has a better workaround.

This is why you NEVER, NEVER, NEVER, NEVER, NEVER update templates in SASHELP.TMPLMST, but ALWAYS define a path so that the template store is READ access, like this:

ods path work.mytemp(update)
         sasuser.templat(update)
         sashelp.tmplmst(read);

To avoid writing over the SAS-supplied templates.

Cynthia

Occasional Contributor
Posts: 9

Re: How do I Reset to Factory Default ODS Styles?

Posted in reply to Cynthia_sas
Got a copy of the tmplmst.sas7bitm file from a colleague, and it did the trick! I won't be making this mistake again...

Thanks!
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 74 views
  • 1 like
  • 2 in conversation