BookmarkSubscribeRSS Feed
K23
Calcite | Level 5 K23
Calcite | Level 5

Hello,

 

 

I have data on excel. There are two (#1 and #2) students answering few questions (1, 2 and 3). I am trying to read these data into SAS. I have written the following code. But it does not work. 

 

 

 proc import out=Report.student;

                     datafile= '/......./ ......./......./Report.xlsx';

                     dbms=execl replace;

                     run;

                    

 

There are  blank spaces in the sheet too. How can I write "Missing" in those blank spaces? 

                      

3 REPLIES 3
ballardw
Super User

Please describe "doesn't work". Was there an error? Incomplete data? Unexpected data? No data?.

 

 

In SAS Missing is a special property for not assigned data. If you want to see the word "MISSING" displayed for those value you use a Format.

K23
Calcite | Level 5 K23
Calcite | Level 5

There are three errors. It says - 

Invalid logical name

Error in Filename statement

Staement is not valid.

ballardw
Super User

It is a very good idea to always use a full path for filenames. That would cause that. A full posting of the error message my provide additonal information.

 

Issues come up with environment such as SAS University Edition or server set up what that may consist of. Servers often are not set up by default to see your local hard drive and an admin needs to help you set upt the syntax and network settings. University Edition only sees locations subordinate to the virtual machine install locaction. All data must be in a path subordinate to that location.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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