BookmarkSubscribeRSS Feed
JacCoate
Calcite | Level 5

Hello - I am new to SAS Studio and figured out how to upload an excel doc. I am running simple code to print my data and am seeing periods: '.' instead of my numbers. I've attached screenshots of my results tab as well as the excel doc I'm uploading.

 

I'm sure I am missing something very simple. Can someone help me?

 

data hw4;
infile '/home/u39793781/sasuser.v94/DS6371 Statistical Foundations/Unit_1/Unit1HW4.xlsx';
input SMU SeattleU;
run;

proc print data = hw4;
run;

 

 

2 REPLIES 2
Reeza
Super User

You cannot import an XLSX file via INPUT you need to use PROC IMPORT instead.

 

Use either a task or proc import to import your XLSX file and you'll be fine.

 

INFILE is for text files.


@JacCoate wrote:

Hello - I am new to SAS Studio and figured out how to upload an excel doc. I am running simple code to print my data and am seeing periods: '.' instead of my numbers. I've attached screenshots of my results tab as well as the excel doc I'm uploading.

 

I'm sure I am missing something very simple. Can someone help me?

 

data hw4;
infile '/home/u39793781/sasuser.v94/DS6371 Statistical Foundations/Unit_1/Unit1HW4.xlsx';
input SMU SeattleU;
run;

proc print data = hw4;
run;

 

 


 

PaigeMiller
Diamond | Level 26

No files are attached, and many of us will not download Microsoft Office files anyway, as they are a security risk.

 

Please try this:

 

proc import datafile='/home/u39793781/sasuser.v94/DS6371 Statistical Foundations/Unit_1/Unit1HW4.xlsx' 
    dbms=excel replace out=want;
run;
--
Paige Miller

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

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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