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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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