BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jcis7
Pyrite | Level 9

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!

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

@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;

 

View solution in original post

11 REPLIES 11
ballardw
Super User

Have you fixed the problem with starting SAS and not having SASUSER.Profile available?

jcis7
Pyrite | Level 9
I believe so since now when I open SAS this is what comes up:

SAS/ETS 15.1
SAS/IML 15.1
SAS/QC 15.1

NOTE: Additional host information:

X64_10PRO WIN 10.0.17763 Workstation

NOTE: SAS initialization used:
real time 5.58 seconds
cpu time 0.95 seconds

WARNING: SASUSER.TEMPLAT is not a template store! It will be ignored.

Tom
Super User Tom
Super User

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.

jcis7
Pyrite | Level 9
1. This is a new machine and before using SAS when I opened SAS, this warning came up.
2. Did you mean to just delete it?
3. For templates are you referring to when you use proc report and use style=? I don't know how to use a template and don't know why SAS is saying it is in the SASUSER library.
4. For the command ODS PATH SHOW I get the following:
Current ODS PATH list is:

1. SASHELP.TMPLMST(READ)
jcis7
Pyrite | Level 9

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

Tom
Super User Tom
Super User

@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.

jcis7
Pyrite | Level 9

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!

jcis7
Pyrite | Level 9

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?

ballardw
Super User

@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;

 

jcis7
Pyrite | Level 9
Appreciate you including the code to show me how to reset the path.

Here is the output for:



proc template;

path show;

run;

Current ODS PATH list is:

1. SASUSER.TEMPLAT(UPDATE)
2. SASHELP.TMPLMST(READ)
3 run;


I tried using the path reset statement and got this in the log:


4 proc template;
5 path reset;
6 run;
NOTE: PROCEDURE TEMPLATE used (Total process time):
real time 0.01 seconds
cpu time 0.00 seconds


7 proc template;
8 path show;
Current ODS PATH list is:

1. SASUSER.TEMPLAT(UPDATE)
2. SASHELP.TMPLMST(READ)
9 run;
NOTE: PROCEDURE TEMPLATE used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

jcis7
Pyrite | Level 9

Thanks for the explanation about what the sasuser library is for and to usually create my own library.

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 11 replies
  • 4412 views
  • 1 like
  • 3 in conversation