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

Hello, 

 

I am new to SAS and trying to pick up the basics of the language. I was trying to do some basic import and proc functions and I am getting the error: ERROR: Unable to restore 'Base.Contents.Attributes' from template store. 

I am starting to assume that I did something wrong when it came to installing the software. Here is my code listed below. 

 

Libname mylib "C:\Users\jnemr\Downloads";


data survey;
infile "C:\Users\jnemr\Downloads\Survey.txt";
input Initials $
Gender $
State $
Years
Profession $;
Run;

 

proc contents data=Survey;

run;

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
Yeah, I think you may need to reinstall it. Not sure what you didn't install unfortunately.

View solution in original post

6 REPLIES 6
Reeza
Super User
Yeah, there's nothing in your code that should generate an error. What happens if you run the following:


proc contents data=sashelp.class;run;
proc means data=sashelp.class;run;

If you get an error in a new session then you likely need to re-do your installation.
jnemri2
Calcite | Level 5

This is what I got in the log for those two lines of code: 

 

335 proc contents data=sashelp.class;run;

WARNING: No output destinations active.
ERROR: Unable to restore 'Base.Contents.Attributes' from template store!
NOTE: PROCEDURE CONTENTS used (Total process time):
real time 0.02 seconds
cpu time 0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.

336 proc means data=sashelp.class;run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.01 seconds
cpu time 0.03 seconds

 

Seems like I have to redo the installation. Do you know if there was a particular part in the installation that I did wrong? Was I supposed to select all packages to be installed at the time of selection? Thanks again! 

Reeza
Super User
No, definitely don't select all.

Try one more line before that code:

ods html;

Are you using Base SAS, SAS Studio or EG?
jnemri2
Calcite | Level 5

Running that code returns some errors as well: 

 

337 ods html;
WARNING: Tagset HTML4 not found; the default tagset will be used instead.
ERROR: Default tagset not found. Be sure that tagsets.default and your preferred tagset are in your ODS path.
(Use ODS PATH SHOW to view the current search path.) This output destination cannot continue.
ERROR: Fatal ODS error has occurred. Unable to continue processing this output destination.
ERROR: No body file. TAGSETS.DEFAULT output will not be created.
ERROR: Could not find extension: (tkcal)
ERROR: Scoped connection startup for ycsinit failed to load tkcal.
ERROR: Could not find extension: (tkcal)
ERROR: Scoped connection startup for ycsinit failed to load tkcal.

I am using Base Sas I believe.

 

 

Reeza
Super User
Yeah, I think you may need to reinstall it. Not sure what you didn't install unfortunately.
jnemri2
Calcite | Level 5

Sounds like some corrupt files during the download. Thanks for your help! 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 6 replies
  • 1759 views
  • 1 like
  • 2 in conversation