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;
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.