BookmarkSubscribeRSS Feed
laylasawaqed
Calcite | Level 5

Hi 

 Why my sas studio doesn't read my excel correctly please advice ?

find my attached is the excel sheet and how it read it ?

 

2 REPLIES 2
Tom
Super User Tom
Super User

How did you try to run the code? If you ran code please show the code and/or LOG.  (Please post them as TEXT by using the insert code or Insert SAS Code icons in the forum editor).

 

I did not have any trouble importing the sheet from your XLSX file.

29    proc import datafile="c:\downloads\MIS445FRED-realGDP.xlsx" out=test replace dbms=xlsx;
30    run;

NOTE: The import data set has 285 observations and 2 variables.
NOTE: WORK.TEST data set was successfully created.
ballardw
Super User

Define "doesn't read my excel correctly".

Error? Unexpected values? Variable names not following column headings? Missing variables? Missing rows of data?

 

I don't open XLSX files from unknown sources for a number of reasons so you need to be clear in describing what is wrong.

 

 

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 638 views
  • 0 likes
  • 3 in conversation