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
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
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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.