Hello,
I am a regular Stata user, so apologies in advance for the basic nature of these questions. I am trying to download publicly available data from a researcher's website: Files available in Indian district database
I am using the University edition of SAS. The preamble of the code reads as follows:
/*********************************************************************/
title 'panel4: 1961-1991 Indian district sas file.' ;
/*********************************************************************/
/* Users will need to create their own libname and filename commands
as appropriate for their local computer system
*/
libname sasdata '.';
filename inpanel pipe 'gunzip -c panel4.data.gz';
data sasdata.panel91;
attrib DLABEL length = $ 28;
infile INPANEL;
When I put in the relevant directory, the code is as follows:
options linesize=132 pagesize=55 nocenter;
/*********************************************************************/
title 'panel4: 1961-1991 Indian district sas file.' ;
/*********************************************************************/
/* Users will need to create their own libname and filename commands
as appropriate for their local computer system
*/
libname sasdata '/Users/corinnestephenson/Documents/SASUniversityEdition/myfolders1';
filename inpanel 'panel4.data.gz';
However I get the following error:
58 libname sasdata '/Users/corinnestephenson/Documents/SASUniversityEdition/myfolders1';
ERROR: The path /Users/corinnestephenson/Documents/SASUniversityEdition/myfolders1 is invalid because it is not in the list of
accessible paths when SAS is in the lockdown state.
ERROR: Error in the LIBNAME statement.
59 filename inpanel 'panel4.data';
60
61 data sasdata.panel91;
Any recommendations would be very much appreciated!!!
Did you set up the shared directory in your VM?
http://support.sas.com/software/products/university-edition/faq/shared_folder_access_existing.htm
http://support.sas.com/software/products/university-edition/faq/shared_folder_access.htm
Hi Reeza,
Thanks for your message. I just double checked -- yes, I set up a shared directory on my VM. Is the lockdown state affecting anything?
No idea ![]()
If you set up the shared directory with that specific path it should work.
You can contact the SAS help directly, they're fairly responsive.
Will try that -- thanks for the suggestions!!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.