BookmarkSubscribeRSS Feed
hollandnumerics
Pyrite | Level 9

I've just updated my Windows SAS environment from SAS 9.4M3 64-bit to SAS 9.4M4 64-bit and Enterprise Guide 7.13 HF2, and every time I ran a program I've started seeing 3 warning messages at the top of the SAS Log:

 

WARNING: 'def' was compiled using a different version of SAS. This might result in unexpected behavior.
WARNING: 'stat' was compiled using a different version of SAS. This might result in unexpected behavior.
WARNING: 'htmlblue' was compiled using a different version of SAS. This might result in unexpected behavior.

 

I don't like seeing error and warning messages in my SAS Log at any time. So I thought I'd help you, so you don't have to search any further, by providing this very easy fix, which is complicated to do in SAS, but easy in Windows Explorer:

  1. Open the My SAS Files folder in your My Documents folder, which is actually your SASUSER library.
  2. Delete the templat.sas7bitm file, which contains the def, stat and htmlblue style templates.

The warning messages should now have gone!  🙂

Philip R Holland
Holland Numerics: Blog and Forums
http://blog.hollandnumerics.org.uk
4 REPLIES 4
Quentin
Super User

Thanks @hollandnumerics I just had the same experience, and the only page returned by google was your post.

 

Curious if there was any explanation from SAS about this.  Why would they write this these templates to the USER library?  Rather than simply delete this file, would there be a benefit to SAS posting the code for these templates so that users can recompile them?

BASUG is hosting free webinars Next up: Jane Eslinger presenting PROC REPORT and the ODS EXCEL destination on Mar 27 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
DanH_sas
SAS Super FREQ

If these template are written to SASUSER, it means that a user tried to compile them themselves and were probably modified from the original version in SASHELP. Once the user compiles a template, they are responsibly for moving it forward to the next SAS version by recompiling it (or deleting it if you do not want it). The way you would move it forward is by "sourcing" the template and recompiling it with PROC TEMPLATE:

 

proc template;

source styles.mystyle;

run;

 

proc template;

<put source from the log here>

run;

 

Hope this helps!

Dan

Quentin
Super User

Thanks @DanH_sas

 

That makes sense, but seems suspicious that @hollandnumerics and I got exactly the same warning message from an upgrade to 9.4M4 64 bit.  I do my best to avoid writing templates to SASUSER. I thought I was doing a "clean" install of 9.4 on a new PC.  But on reflection, it's conceivable that that my copy of My Documents\My SAS Files\9.4\templat.sas7bitm orginated from an earlier install on a different PC.  It's notable that everything in the directory has a mod date of today, except the moddate of templat.sas7bitm is 11/10/2013.

 

Then again, if the installer had somehow generated this file, I would think there would be more than two of us complaining. : )

 

--Q.

BASUG is hosting free webinars Next up: Jane Eslinger presenting PROC REPORT and the ODS EXCEL destination on Mar 27 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
UVakkalagadda
Obsidian | Level 7

Hi Philip,

Recently I also faced the same warning  in SAS EG 7.11. what I did is simply selected a different style that exists in Style Manager, by default SAS EG generates a STYLE=HTMLBLUE option. I changed to another Style ( Harvest) and set as default.It fixed the issue.

Creating-reports-in-style-with-SAS-Enterprise-Guide4.pngI hope it helps.!! 🙂

 

Thanks

Uday Vakkalagadda

 

Uday

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 3426 views
  • 7 likes
  • 4 in conversation