I am trying to import SPSS files into SAS. SPSS automatically generated a SAS dataset and also a code file of all formats.
I wanted to run the format codes to apply all formats to the dataset. The formats codes are like this:
libname library '\xxxxxxx' ;
proc format library = library ;
value followup
0 = 'Baseline'
1 = '1st Followup'
2 = '2nd Followup'
3 = '3rd Followup'
4 = '4th Followup'
5 = '5th Followup'
6 = '6th Followup'
7 = '7th Followup'
8 = '8th Followup'
9 = '9th Followup' ;
proc datasets library = library ;
modify dataset;
format followup followup.;
quit;
I just used one format for illustration purpose.
However, I got an error like this:
"ERROR: File LIBRARY.DATASET cannot be updated because its encoding does not match the
session encoding or the file is in a format native to another host, such as WINDOWS_32."
Can anyone help me to solve the problem?
Thank you very much!!