Hello,
I have problem with my proc import. I have this log if when importing an excel file with proc import :
WARNING: Some character data was lost during transcoding in column: Libellé partic
Please can someone help me to ignore this warning. there is an option to use in proc import ?
Thks
Start SAS using "Unicode support" which just means using ENCODING='utf-8'.
How to do that depends on how you are running SAS.
If you are using SAS/Studio or Enterprise Guide as the front end tool for submitting SAS code then make sure you are connected to a SAS application server that is using unicode support.
If you are using SAS on Windows then there should be Start menu entry/icon for running SAS with Unicode support.
If you are using SAS from the command line you might be able to just add the -encoding option to the command line, but you might also have a different config file you point the -config option at instead.
Please show us the complete log, so we know what kind of file you are importing.
am importing an excel file with proc import an the log is :
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 31.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 33.
Transcoding errors often appear if the sas session uses an outdated encoding like latin1 instead of utf-8.
Btw. you still have not posted the complete log.
for this, i use filename stament and set enoding="utf-8" but it doesn't work
..???
It seems you have trouble with the meaning of the word "complete", so I sent you the online available dictionary entry.
ohh it's all i have in the log : WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 447985.
COMPLETE LOG means copy the submitted code, which would start with Proc , to include all of the messages and the time the procedure took to execute.
If your log does not inlcude the code that was run, make sure that
options source;
is set, and that you do not run your code as part of a macro.
31 proc import out=tes
32 datafile =ext
33 dbms=xlsx
34 replace;
35 getnames=yes;
36 run;
NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with
options MSGLEVEL=I.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 31.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 33.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 34.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 35.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 36.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 37.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 38.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 39.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 40.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 41.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 42.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 43.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 44.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 45.
WARNING: Some character data was lost during transcoding in column: Libellé particularité émetteur at obs 48.
Start SAS using "Unicode support" which just means using ENCODING='utf-8'.
How to do that depends on how you are running SAS.
If you are using SAS/Studio or Enterprise Guide as the front end tool for submitting SAS code then make sure you are connected to a SAS application server that is using unicode support.
If you are using SAS on Windows then there should be Start menu entry/icon for running SAS with Unicode support.
If you are using SAS from the command line you might be able to just add the -encoding option to the command line, but you might also have a different config file you point the -config option at instead.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.