The SAS Output Delivery System and reporting techniques

template difference between 9.1.3 and 9.2

Reply
Occasional Contributor
Posts: 14

template difference between 9.1.3 and 9.2

I have the following template that works fine in 9.1.3, but produced warnings in 9.2.
What changes do I need to apply for the template to work in 9.2?

Thanks,
fd
****************************************************************
SAS 9.2 WARNING:
WARNING: Could not locate style reference 'ABI_Landscape_10pt.fonts("BatchFixedFont")'.
The SAS System

WARNING: Could not locate style reference 'ABI_Landscape_10pt.fonts("FixedStrongFont")'.
WARNING: Could not locate style reference 'ABI_Landscape_10pt.fonts("StrongFont")'.
WARNING: Could not locate style reference 'ABI_Landscape_10pt.fonts("FixedEmphasisFont")'.
WARNING: Could not locate style reference 'ABI_Landscape_10pt.fonts("EmphasisFont")'.
WARNING: Could not locate style reference 'ABI_Landscape_10pt.fonts("FixedFont")'.
WARNING: Could not locate style reference 'ABI_Landscape_10pt.Fonts("TitleFont2")'.
WARNING: Could not locate style reference 'ABI_Landscape_10pt.fonts("TitleFont")'.
********************************************
templates:
proc template;
define style Styles.ABI_Landscape_10pt / store = TEMPLIB.MODTEMP;
notes "Landscape Times Roman 10 pt";
parent=styles.rtf;
style systemtitle "controls the system titles"/
font_weight=bold
font_face="TimesRoman"
font_size=12pt
just=left;

style systemfooter "controls the system footer"/
font_weight=medium
font_face="TimesRoman"
font_size=8pt
just=left
;

style table "controls the table"/
cellpadding=3
rules=groups
frame=hsides;

style header "controls the header"/
font_weight=bold
font_face="TimesRoman"
font_size=10pt
background=_undef_;

style footer "controls the footer"/
font_weight=medium
font_face="TimesRoman"
font_size=9pt
background=_undef_;

style usertext from usertext;
style fonts /
'docFont' = ("Times Roman",10pt)
'headingFont' = ("Times Roman",10pt, bold);

style Body from Document "Controls the Body file." /
bottommargin = 1.0in
topmargin = 1.0in
rightmargin = 1.0in
leftmargin = 1.0in;
end;
run;
********************************************
SAS Super FREQ
Posts: 8,868

Re: template difference between 9.1.3 and 9.2

Hi:
Usually, you used to get the "could not locate style reference" when your procedure/program of choice asked for a style element that could not be found. What procedure(s) did you use with the new style template??? You show the template code, but not the procedure/program that used the template.

The style inheritance model did change between SAS 9.1.3 and SAS 9.2, so it's possible that your prior version of the template was working in SAS 9.1.3 but stopped working (or started throwing WARNING messages) because of that difference.

I no longer have SAS 9.1.3 to compare the two behaviors, so I would suggest that you work with Tech Support on this question, as they can test your template -- with your procedures or your code -- in SAS 9.1.3 and in SAS 9.2.

When I -did- have SAS 9.1.3, however, and I used a parent template, I ALWAYS used the STYLE statement with the correct FROM or I used a REPLACE statement without a FROM -- so without actually running your code in SAS 9.1.3, I'm not exactly sure how inheritance would have resolved for this template in SAS 9.1.3.

cynthia
Occasional Contributor
Posts: 14

Re: template difference between 9.1.3 and 9.2

Posted in reply to Cynthia_sas
Thank you Cynthia! I am using proc report with this template. I will follow up with Tech Support.

fd
SAS Employee
Posts: 16

Re: template difference between 9.1.3 and 9.2

This is due to the inheritance model change that Cynthia mentioned. If you change your fonts element to be 'style fonts from fonts / ... ;' that should fix your problem.
Occasional Contributor
Posts: 14

Re: template difference between 9.1.3 and 9.2

Posted in reply to Kevin_SAS
YES! When I used 'style fonts from fonts /....', it elimintaed the warnings.

Thank you very much!

fd
Ask a Question
Discussion stats
  • 4 replies
  • 560 views
  • 0 likes
  • 3 in conversation