BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
newnoise
Fluorite | Level 6

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

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

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

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

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

newnoise
Fluorite | Level 6
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!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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