data a; set sashelp.class; run;
PROC EXPORT DATA= WORK.A OUTFILE= "C:\Users\lenovo\Desktop\class.dta" DBMS=STATA LABEL REPLACE; RUN;
options MSGLEVEL=I;
PROC IMPORT OUT= WORK.class DATAFILE= "C:\Users\lenovo\Desktop\class.dta" DBMS=STATA REPLACE; RUN;
How to solve this problem,SAS lost some advantage.
It would be helpful if you could show more of your log using the indicated icons:
Often, it's not serious when you get a "VARCHAR data type is not supported by the V9 engine" message in the log. Usually, SAS just converts it to Char.
What are your results like? Is there a problem with the results or is the message the only issue?
Jim
SAS exports the file, and then imports it into SAS. The data is inconsistent and the label is missing.
Looks like you have an encoding difference between Stata and SAS. Run this to check your SAS encoding and post the result:
proc options option = encoding;
run;
Chinese coding,M2, there will be no problem with this operation.M6 has this problem.
By comparison, ENCODING=WLATIN1, there is a warning under this code, but there is no problem, but not under Chinese code. This is a bug.
The warning is not a serious one, and the warning is not related to the encoding problem that you are seeing. The real problem is the encoding and not the Varchar.
I'm not sure this is a bug; I think the configuration just needs to be adjusted.
Since you have two SAS versions available, what is the encoding on your older (M2) version of SAS versus your newer (M5) version of SAS?
Jim
Here are the M2 and M6 SAS versions of the encoding, I think the two encoding are the same, which I have considered, so I think it is a encoding problem.
If you have a moment, would it be possible for you to run the following code in your M2 environment and also your M6 environment? I would like to see if there are any differences.
PROC OPTIONS GROUP=LANGUAGECONTROL;
RUN;
Thank you,
Jim
E6 added the DSCAS module, abandoned the use of DS2ACCEL=NONE and DSACCEL = NONE, perhaps updated this piece, resulting in some missing characters in the East Asian SAS version.
Thank you for your help
Haipo
I'm not seeing anything obvious that would cause this issue. @SASKiwi, do you have any thoughts?
Perhaps, @zhanghaipo, you should open a Track with SAS Customer Support. This should not be happening.
Jim
I agree with @jimbarbour 's suggestion regarding Tech Support as I can't test Chinese encoding myself. At least you have a workaround using LATIN1 encoding.
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.