BookmarkSubscribeRSS Feed
Chunling
Calcite | Level 5

When i read the excel by libname, it always have error "ERROR:   string is duplicated  |><t/>|" in one file, but not in another file, would you please help to guide? thank you very much!

 

The program is listed as follow:

 

options validvarname=any;
libname _definea xlsx "&dfadam./datasets/define.xlsx";
data _definea.variables;
 set _definea.variables;
 run;
options validvarname=v7;

 

2 REPLIES 2
qoit
Pyrite | Level 9

Can you use PROC IMPORT?

 

proc import out= variables

    datafile = "&dfadam./datasets/define.xlsx"

    dbms = Excel

replace;

    sheet = "variables";

    getnames = yes;

run;

andreas_lds
Jade | Level 19

This problem has been reported occurring when using proc export, not while using the libname statement. You should verify that all updates regarding access to pc-files are installed and that excel has no problems opening the file. And i am not sure that overwriting a sheet in place works at all.

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

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
  • 616 views
  • 0 likes
  • 3 in conversation