BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
texasmfp
Lapis Lazuli | Level 10

I did a fresh install and, apparently I had created a custom style (which I called SASMONOSPACE) that got wiped out.  It is possible that there is a backup of my files that might contain this custom style.  Where would custom templates be stored on my hard drive?  Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
texasmfp
Lapis Lazuli | Level 10

I found the solution: more than one instance of SAS open:

 

http://support.sas.com/techsup/notes/v8/4/739.html

 

View solution in original post

3 REPLIES 3
ballardw
Super User

This is one of those "it depends" answers.

If you had the style template saved in a permanent library and then added that library to the path then the template should still be in the library and just need to be added to the path.

However if you wrote the template direct to the template store then it was likely completely overwritten by the install.

 

 

You did save the code that created the template didn't you? Hopefully you can find that.

 

Tedious option is restore from a system backup the appropriate folders to somewhere other than the existing template catalog, assign a library and use Proc Template to go fishing for template with the name you want.

 

 

 

texasmfp
Lapis Lazuli | Level 10

Thanks, I did find the code, but I ran it and the log says it cannot write to the template store:

 

9767   DM 'CLEAR LOG; CLEAR OUTPUT';
9768   options ExtendObsCounter=no;
9769
9770   PROC TEMPLATE;
9771   define style Styles.SASMonospace;
9772      parent = styles.printer;
9773      class fonts /
9774         'docFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9775         'headingFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9776         'headingEmphasisFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9777         'FixedFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9778         'FixedHeadingFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9779         'FixedStrongFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9780         'FixedEmphasisFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9781         'EmphasisFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9782         'StrongFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9783         'TitleFont' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9784         'TitleFont2' = ("<SAS monospace>, Roman, SAS monospace",8pt)
9785         'BatchFixedFont' = ("<SAS monospace>, Roman, SAS monospace",8pt);
9786
9787   /*class header/
9788   backgroundcolor=white
9789   color=Blue;
9790   */
9791   style systemtitle /
9792   backgroundcolor=white
9793   fontfamily='SAS Monospace'
9794   fontstyle=Roman
9795   fontsize=8.5pt
9796   color=bLUE;
9797
9798   style systemfooter /
9799   backgroundcolor=white
9800   fontfamily='SAS Monospace'
9801   fontstyle=Roman
9802   fontsize=7.5pt
9803   color=bLUE;
9804
9805   style PageNo /
9806   backgroundcolor=white
9807   fontfamily='SAS Monospace'
9808   fontstyle=Roman
9809   fontsize=7.5pt
9810   color=bLUE;
9811
9812   style BODYdate /
9813   backgroundcolor=white
9814   fontfamily='SAS Monospace'
9815   fontstyle=Roman
9816   fontsize=7.5pt
9817   color=lightRED;
9818
9819   class table /
9820         frame = void
9821         rules = groups
9822         backgroundcolor = white
9823         borderspacing = 0pt
9824         cellpadding = 2pt;
9825      style allrulestable from table /
9826         frame = void
9827         rules = all;
9828   end;
ERROR: Template 'Styles.SASMonospace' was unable to write to template store!
9829   run;
NOTE: PROCEDURE TEMPLATE used (Total process time):
      real time           0.03 seconds
      cpu time            0.04 seconds

WARNING: Errors were produced.
NOTE: The SAS System stopped processing this step because of errors.

 

 

texasmfp
Lapis Lazuli | Level 10

I found the solution: more than one instance of SAS open:

 

http://support.sas.com/techsup/notes/v8/4/739.html

 

SAS Innovate 2025: Register Today!

 

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 568 views
  • 0 likes
  • 2 in conversation