01-31-2012 12:21 PM
I am trying to use a custom style template and when I apply it, the default seems to be used.
I have looked in the template style folder and I can see the template.
I have not found anything in the knowledge base that was of any help.
Using 9.3 (TS1M0) on a X64_7PRO platform (Windows).
Thanks in advance.
ods path sasuser.templat(update) sashelp.tmplmst (read) ;
ods pdf file = 'c:\filename.pdf' style=Styles.Custom;
3677 ods path sasuser.templat(update) sashelp.tmplmst (read) ;
3678 ods pdf file = 'c:\filename.pdf' style=Styles.Custom;
NOTE: Writing ODS PDF output to DISK destination "c:\sriprojects\rib-x-fda\define_output\adeg1.pdf", printer "PDF".
01-31-2012 12:31 PM
I don't know if this applies to you but when I upgraded to SAS 9.2.3 I had an issue with a custom style not working and rebuilding based on a SAS supplied style did not help.
I had to get to the source of the style to find out that the SAS supplied version had changed how it was addressing color and fonts in the base style and my existing code wasn't compatible. I had to to modify the code to align with with the new base definition method.
01-31-2012 02:24 PM
Or, perhaps SASUSER is on a server and locked down.
This code worked for me using SAS 9.3. I rarely save my templates in SASUSER because I frequently have to reinstall SAS and sometimes SASUSER contents go away during a reinstall. I generally store my changed templates in a separate directory under my control. In the code below, however, I just use the WORK location.
If you continue to have issues, you might work with Tech Support on this problem.
ods path work.tmp(update)
sashelp.tmplmst (read) ;
define style styles.custom;
class Header /
ods listing close;
ods pdf file = 'c:\temp\usepink.pdf'
proc print data=sashelp.class(obs=3);
proc freq data=sashelp.class;
ods pdf close;