BookmarkSubscribeRSS Feed
cjmccorm
Calcite | Level 5

Hi all!

This is a very basic question. I am trying to simply run a program, but each time I got to do this, errors saying that the Library does not exist. This is program I am trying to run

libname Hanoi "D:\PracSas\Hanoi";

data one;

set Hanoi.vietsight;

vietsight is the sas7bdat file that I want to run and it is saved in the folder Hanoi, which is under PracSas on my flashdrive.

What am I doing wrong?

An error also comes up that there are no variables in the data set.

Any help would be greatly appreciated!

4 REPLIES 4
sugeshnambiar
Fluorite | Level 6

I hope the sas is installed on window machine!!!

you will first have to import the dataset into sas window environment, so that sas will be able to recognize the path. I am not sure if there is a plugin for it.

try using a statement "run;" at the end..

andreas_lds
Jade | Level 19

First, be sure that the library was assigned successfully. You should find a note in the log:

NOTE: Libref Hanoi was successfully assigned as follows:

      Engine:        V9

      Physical Name: D:\PracSas\Hanoi

PeterPanPan
Calcite | Level 5

Are you using SAS Enterprise Guide with libraries on the server? If so, try to use SAS Base.

esjackso
Quartz | Level 8

There doesnt appear to be anything wrong with your syntax. I would navigate to the folder through windows and copy and paste the folder from the address line on the explorer window. That way you elimiate typos as an issue.

As mentioned if you dont get a successful libname set, the rest of the code will not matter.

EJ

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
  • 827 views
  • 1 like
  • 5 in conversation