BookmarkSubscribeRSS Feed
MRatchford
Calcite | Level 5

Hello,

I am trying to read in an excel file with 200 rows of data but SAS only shows 100.  Am I missing a parameter or something in the code?

Any help is appreciated.  Thanks,

Melva

 

/** Import an xlxs file. **/

PROC IMPORT DATAFILE="/folders/myshortcuts/MySASFolder/HBAT200"
OUT=WORK.HBAT200
DBMS=xlsx
REPLACE;

RUN;

/** Print the results. **/

PROC PRINT DATA=WORK.HBAT200; RUN;

2 REPLIES 2
Reeza
Super User

What does the log say?

Please post the full log. 


@MRatchford wrote:

Hello,

I am trying to read in an excel file with 200 rows of data but SAS only shows 100.  Am I missing a parameter or something in the code?

Any help is appreciated.  Thanks,

Melva

 

/** Import an xlxs file. **/

PROC IMPORT DATAFILE="/folders/myshortcuts/MySASFolder/HBAT200"
OUT=WORK.HBAT200
DBMS=xlsx
REPLACE;

RUN;

/** Print the results. **/

PROC PRINT DATA=WORK.HBAT200; RUN;


 

MRatchford
Calcite | Level 5

Thanks Reeza for your prompt reply.  I found my mistake.  I had not noticed that I was pointing to the first sheet of the excel workbook which has 100 rows!  I am now able to load the second sheet which is the one with 200.

 

Melva

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

SAS Enterprise Guide vs. SAS Studio

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 947 views
  • 0 likes
  • 2 in conversation