BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

I am using sas engine to export data set into XLSX file.

I get warning :


WARNING: Some character data was lost during transcoding data  

This char is written in Hebrew

What should I do?

 

Note- when i am using proc export it is working 100% well wit no warnings

%include '!RSMEHOME/SASCode/SHARECode/Libname.sas';
proc export data=Sheets_info_tbl
outfile="/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Bakara_General_Fields/Only_833_703_noKSH_noPepper/Bakara.xlsx"
DBMS=xlsx replace;
sheet='POP';
run;
proc export data=r_r.BakaraFields_Part1Report_A 
outfile="/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Bakara_General_Fields/Only_833_703_noKSH_noPepper/Bakara.xlsx"
DBMS=xlsx replace;
sheet='P1_833_703_noKSH';
run;
proc export data=r_r.BakaraFields_Part2Report_A 
outfile="/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Bakara_General_Fields/Only_833_703_noKSH_noPepper/Bakara.xlsx"
DBMS=xlsx replace;
sheet='P2_833_703_noKSH';
run;

As I sais when use XLSX engine I get warning and cannot open the XLSX file

libname myxl xlsx  "/usr/local/SAS/SASUsers/LabRet/UserDir/udclk79/Bakara_General_Fields/Only_833_703_noKSH_noPepper/Bakara.xlsx";
data myxl.POP; /**SHEET1--POP**/
set Sheets_info_tbl;
run;
data myxl.P1_833_703_noKSH; /**SHEET2--P1_833_703_noKSH**/
set ttt1;
run;
data myxl.P2_833_703_noKSH; /**P2_833_703_noKSH**/
set ttt2;
run;

 

 

 

 

2 REPLIES 2
Ksharp
Super User

Try EXCEL engine.

libname myxl excel  "c:\temp\temp1.xlsx" ;
data myxl.class;
set sashelp.class;
run;

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 2 replies
  • 1098 views
  • 0 likes
  • 3 in conversation