BookmarkSubscribeRSS Feed
ErikLund_Jensen
Rhodochrosite | Level 12

Hi @ilikesas 

 

Try using the XLSX libname engine instead of Proc Import. Example:

 

libname datain xlsx 'c:\temp\testsheet.xlsx';

proc copy inlib=datain outlib=work;
	select SHEET1;
run;
337  libname datain xlsx 'c:\temp\testsheet.xlsx';
NOTE: Libref DATAIN was successfully assigned as follows:
      Engine:        XLSX
      Physical Name: c:\temp\testsheet.xlsx
338  proc copy inlib=datain outlib=work;
339      select SHEET1;
340  run;

NOTE: Copying DATAIN.SHEET1 to WORK.SHEET1 (memtype=DATA).
NOTE:    Variable Name Change.  S.NO -> S_NO
NOTE:    Variable Name Change.  AUTHORIZATION LEVEL -> AUTHORIZATION_LEVEL
NOTE: BUFSIZE is not cloned when copying across different engines. System Option for BUFSIZE was used.
NOTE: The import data set has 72 observations and 6 variables.
NOTE: There were 72 observations read from the data set DATAIN.SHEET1.
NOTE: The data set WORK.SHEET1 has 72 observations and 6 variables.
NOTE: PROCEDURE COPY used (Total process time):
      real time           0.04 seconds
      cpu time            0.01 seconds

 

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 15 replies
  • 9350 views
  • 0 likes
  • 8 in conversation