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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

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
  • 1000 views
  • 0 likes
  • 3 in conversation