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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 1966 views
  • 1 like
  • 2 in conversation