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;
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;
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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.