BookmarkSubscribeRSS Feed
fd2010
Calcite | Level 5
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;
********************************************
4 REPLIES 4
Cynthia_sas
SAS Super FREQ
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
fd2010
Calcite | Level 5
Thank you Cynthia! I am using proc report with this template. I will follow up with Tech Support.

fd
Kevin_SAS
SAS Employee
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.
fd2010
Calcite | Level 5
YES! When I used 'style fonts from fonts /....', it elimintaed the warnings.

Thank you very much!

fd

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 4 replies
  • 1387 views
  • 0 likes
  • 3 in conversation