BookmarkSubscribeRSS Feed
nikhila1990
Calcite | Level 5

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

1 REPLY 1
Rick_SAS
SAS Super FREQ

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 791 views
  • 0 likes
  • 2 in conversation