G' day!
I'm getting the following warning when opening SAS.
WARNING: SASUSER.TEMPLAT is not a template store! It will be ignored.
What do I do?
Thanks!
@jcis7 wrote:
What is the sasuser library used for in general?
Is it a best practice to avoid using it as a library but create our own on a network drive?
SASUSER is mostly used for user customization.
I would suggest submitting this code and sharing the result:
proc template; path show; run;
Proc Template is used to, among other things, manage template stores. The SASUSER.TEMPLAT template store is normally the default for temporary templates such as creating a modified output table layout for a procedure. Something may have happened to cause an issue with your install.
Or you could try this code to reset to defaults, which would assign the SASUSER.Templat to default (Update) status.
proc template; path reset; run;
Have you fixed the problem with starting SAS and not having SASUSER.Profile available?
Why not just delete it?
proc datasets nolist lib=sasuser ;
delete templat /memtype=catalog;
run;
quit;
Why are you using templates in your SASUSER library anyway? Anything you write there will only be usable by you, and then only when your SASUSER library is properly defined. Which can be a problem if you are running multiple SAS sessions at the same time.
Use the command >> ODS PATH SHOW; << to see what setting you have for your ODS search path.
Also this is what I get when I run the PROC DATASET statement you listed:
NOTE: The file SASUSER.TEMPLAT (memtype=CATALOG) was not found, but appears on a DELETE
statement.
7 quit
@jcis7 wrote:
Also this is what I get when I run the PROC DATASET statement you listed:
NOTE: The file SASUSER.TEMPLAT (memtype=CATALOG) was not found, but appears on a DELETE
statement.
7 quit
Are you sure your SASUSER library is pointing to a valid place?
You can use the PATHNAME() function to see where it is pointing.
%put %sysfunc(pathname(sasuser));
Then take a look in that directory and see if there is any files whose name looks like templat.sas7bcat. Perhaps you can just delete or rename that file and try to start SAS again. Make sure to do that on the machine where SAS itself is running. Note that if you are using SAS/Studio or Enterprise Guide or some other way of accessing SAS then it might not be your machine. It might not even be using your userid.
Thanks for helping me check if it's a valid path. It is.
C:\users\t<userid>\Documents\My SAS Files\9.4
Does it need a slash after the 9.4?
If it does, how do I change that?
Also I see a templat file there when I open the C folder and follow the path to the 9.4 folder.
I deleted the template file. But how did it get there? By using SASUSER as a library?
Thanks!
What is the sasuser library used for in general?
Is it a best practice to avoid using it as a library but create our own on a network drive?
@jcis7 wrote:
What is the sasuser library used for in general?
Is it a best practice to avoid using it as a library but create our own on a network drive?
SASUSER is mostly used for user customization.
I would suggest submitting this code and sharing the result:
proc template; path show; run;
Proc Template is used to, among other things, manage template stores. The SASUSER.TEMPLAT template store is normally the default for temporary templates such as creating a modified output table layout for a procedure. Something may have happened to cause an issue with your install.
Or you could try this code to reset to defaults, which would assign the SASUSER.Templat to default (Update) status.
proc template; path reset; run;
Thanks for the explanation about what the sasuser library is for and to usually create my own library.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.