DATA Step, Macro, Functions and more

SAS Crashes while running PROC Contents or PROC Datasets

Reply
Frequent Learner
Posts: 1

SAS Crashes while running PROC Contents or PROC Datasets

I'm trying to run the following code in order to get the list of variable names and other attributes.

 

proc contents data  <libname.datasetname>;

run;

 

OR

 

proc datasets library = <libname>;

contents data = <datasetname>;

run;

 

These codes work fine if the datasets are in the work folder. However, if the data sets are in a library other than the work library, SAS stops working. I get an error - sas.exe has stopped working  - a problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.

 

I tried deleting the library and creating a new one. Restarting SAS, and restarting my laptop did not work either. I use SAS 9.4. Any help to resolve this issue would be very helpful.

 

Thanks,

Nikhila

SAS Super FREQ
Posts: 4,124

Re: SAS Crashes while running PROC Contents or PROC Datasets

Posted in reply to nikhila1990

Any crash should be reported to SAS Technical Support.. In this case, it sounds like the software was not installed correctly.

Ask a Question
Discussion stats
  • 1 reply
  • 83 views
  • 0 likes
  • 2 in conversation