BookmarkSubscribeRSS Feed
corinnes
Calcite | Level 5

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!!!

4 REPLIES 4
corinnes
Calcite | Level 5

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? 

Reeza
Super User

No idea Smiley Sad

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.

corinnes
Calcite | Level 5

Will try that -- thanks for the suggestions!!

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!

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
  • 4 replies
  • 1668 views
  • 0 likes
  • 2 in conversation