<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ERROR: Some character data was lost during transcoding in the dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710148#M218551</link>
    <description>As Tom said, the problem is due to your sas have different encoding with your sas dataset.&lt;BR /&gt;&lt;BR /&gt;a workaround way maybe &lt;BR /&gt;1) change your original dataset into CSV file &lt;BR /&gt;&lt;BR /&gt;filename x 'c:\temp\temp.csv' encoding='utf8' ;&lt;BR /&gt;proc export data=have outfile=x ........&lt;BR /&gt;&lt;BR /&gt;2)read it into SAS.&lt;BR /&gt;&lt;BR /&gt;filename x 'c:\temp\temp.csv' encoding='utf8' ;&lt;BR /&gt;proc import datafile=x out=want ........</description>
    <pubDate>Fri, 08 Jan 2021 11:08:57 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-01-08T11:08:57Z</dc:date>
    <item>
      <title>ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/699982#M214160</link>
      <description>&lt;P&gt;I have read a previous post about this but couldn't find the solution for me.&lt;/P&gt;&lt;P&gt;The error says "Either&amp;nbsp;the data contains characters that are not representable in the new encoding or truncation&amp;nbsp;occurred during transcoding."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data file is originally SPSS, which I then convert to sas to work with it in sas (since I have to do some recoding and sas is my preferred program to use).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have strings that are long but not 30000, as it says on my SPSS. So I am not sure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this code&lt;/P&gt;&lt;P&gt;libname xx cvp 'C:mylocation';&lt;BR /&gt;proc copy in=xx out=work noclone;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;but the error still remained.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;System Options for BUFSIZE and REUSE were used at user's request.&lt;BR /&gt;NOTE: Libname and/or system options for compress, pointobs, data representation and encoding attributes&amp;nbsp;were used at user's request&lt;/P&gt;&lt;P&gt;Some character data was lost during transcoding in the dataset PREMR.PREMRDATA1092020. Either&amp;nbsp;the data contains characters that are not representable in the new encoding or truncation&lt;BR /&gt;occurred during transcoding.&lt;BR /&gt;ERROR: File WORK.X has not been saved because copy could not be completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one or two variables for which the strings can be anywhere from 10 words to 300 words (not 30000 though) and&amp;nbsp;I am wondering if the real issues are the symbols we use in these strings. Please see example below. This is the only thing I can think of. If this is the issue how do I handle this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"White Blood Cell; 15.8 k/uL; 4.0-11.0 k/uL; Red Blood Cell; 4.41 m/uL; 3.60-5.20 m/uL; Red Cell Distribution; 14.7%; 11.5-14.0%; Mean Platelet Volume; 8.1 fl; 6.0-10.0 fl; Segmented Neutrophils; 86%; 34-64%; Lymphocyte; 10%; 28-48%; Monocyte; 4%; 1-13%; EOS; 1%; 0-5%"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 20:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/699982#M214160</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2020-11-18T20:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/699991#M214167</link>
      <description>&lt;P&gt;What is your SAS session encoding? What:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysencoding.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;returns?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 21:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/699991#M214167</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2020-11-18T21:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/700185#M214270</link>
      <description>Try option encoding :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data copy(encoding=any);&lt;BR /&gt; set sashelp.class;&lt;BR /&gt;run;</description>
      <pubDate>Thu, 19 Nov 2020 12:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/700185#M214270</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-11-19T12:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/701240#M214713</link>
      <description>&lt;P&gt;I will try the suggestions next week, as I am not working this week, but wanted to thank you in advance. I will let you know what I find.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/701240#M214713</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2020-11-24T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/701241#M214714</link>
      <description>&lt;P&gt;I will try the suggestions next week, as I am not working this week, but wanted to thank you in advance. I will let you know what I find.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/701241#M214714</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2020-11-24T15:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/709934#M218433</link>
      <description>&lt;P&gt;Hi. I finally had time to go back to this issue I was having.&lt;/P&gt;&lt;P&gt;I tried your suggestion:&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test(encoding=any);&lt;BR /&gt;set pr.nameofmydatafile;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the error remains:&lt;/P&gt;&lt;P&gt;After expansion the size of at least one character variable exceeds the maximum length of 32767.&lt;BR /&gt;The length will be set to the maximum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;Some character data was lost during transcoding in the dataset&amp;nbsp; pr.nameofmydatafile . Either&lt;BR /&gt;the data contains characters that are not representable in the new encoding or truncation&lt;BR /&gt;occurred during transcoding.&lt;BR /&gt;NOTE: The DATA step has been abnormally terminated.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 4023 observations read from the data set X (my data file name)&lt;BR /&gt;WARNING: The data set WORK.TEST may be incomplete. When this step was stopped there were 4023&lt;BR /&gt;observations and 3053 variables.&lt;BR /&gt;WARNING: Data set WORK.TEST was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure what to do. it is the first time I am trying to work with such a long data file and with such long strings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 15:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/709934#M218433</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2021-01-07T15:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/709935#M218434</link>
      <description>&lt;P&gt;Hi. I finally had time to go back to this issue I was having.&lt;/P&gt;&lt;P&gt;I tried your suggestion:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data test;&lt;BR /&gt;Set pr.mydatafilename;&lt;BR /&gt;%put &amp;amp;sysencoding.;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the error remains:&lt;/P&gt;&lt;P&gt;After expansion the size of at least one character variable exceeds the maximum length of 32767.&lt;BR /&gt;The length will be set to the maximum&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;Some character data was lost during transcoding in the dataset&amp;nbsp; pr.mydatafilename . Either&lt;BR /&gt;the data contains characters that are not representable in the new encoding or truncation&lt;BR /&gt;occurred during transcoding.&lt;BR /&gt;NOTE: The DATA step has been abnormally terminated.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 4023 observations read from the data set X (my data file name)&lt;BR /&gt;WARNING: The data set WORK.TEST may be incomplete. When this step was stopped there were 4023&lt;BR /&gt;observations and 3053 variables.&lt;BR /&gt;WARNING: Data set WORK.TEST was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure what to do. it is the first time I am trying to work with such a long data file and with such long strings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 15:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/709935#M218434</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2021-01-07T15:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/709937#M218435</link>
      <description>&lt;P&gt;The purpose of checking the value of the macro variable SYSENCODING was so you could know (and show us) what encoding your SAS session was using. Putting the %PUT statement into the middle of a data step makes no sense.&amp;nbsp; Run the %PUT statement can copy and paste the result into the pop-up window that appears when you click the Insert Code (looks like &amp;lt; / &amp;gt; ) button.&amp;nbsp; Like this:&lt;/P&gt;
&lt;PRE&gt;198   %put &amp;amp;=sysencoding;
SYSENCODING=wlatin1
&lt;/PRE&gt;
&lt;P&gt;The purpose of the ENCODING=ANY dataset option is to prevent SAS from trying to transcode (change characters from one encoding to another) in the process of copying the data.&amp;nbsp; As such it would make more sense to place it on the INPUT dataset reference instead of the target dataset.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 15:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/709937#M218435</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-07T15:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710004#M218471</link>
      <description>&lt;P&gt;My apologies. I am not good with macros and it is something I need to learn. And I am not sure I understand what you told me to do. However,&lt;/P&gt;&lt;P&gt;I ran this right after the libname&amp;nbsp;&lt;/P&gt;&lt;P&gt;%put &amp;amp;sysencoding.;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I called in my file&amp;nbsp; (using encode any)&amp;nbsp;and interesting enough it is still saying there was some truncation but the data file was generated this time (all obs were there, as opposed to 0 obs from before).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the error remains and I am sorry I don't see a pop up window when I run the %put. I am using SAS 9.4&amp;nbsp;&lt;/P&gt;&lt;P&gt;My log looks like this&lt;/P&gt;&lt;P&gt;After I run the %out in my input data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname pr 'XXXXXXXXXXXXXXXXXXXXXXXX';&lt;BR /&gt;NOTE: Libref PR was successfully assigned as follows:&lt;BR /&gt;Engine: V9&lt;BR /&gt;Physical Name: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&lt;BR /&gt;43 %put &amp;amp;sysencoding.;&lt;BR /&gt;wlatin1&lt;BR /&gt;44 Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when I call my data (sorry I don't know where else to place encoding =any.&lt;/P&gt;&lt;P&gt;data test3(encoding=any);&lt;BR /&gt;46 set pr.X;&lt;BR /&gt;NOTE: Data file pr.X is in a format that is native to another host, or the file&lt;BR /&gt;encoding does not match the session encoding. Cross Environment Data Access will be used, which&lt;BR /&gt;might require additional CPU resources and might reduce performance.&lt;BR /&gt;47 Run;&lt;/P&gt;&lt;P&gt;ERROR: Some character data was lost during transcoding in the dataset PREMR.PREMRDATA1092020. Either&lt;BR /&gt;the data contains characters that are not representable in the new encoding or truncation&lt;BR /&gt;occurred during transcoding.&lt;BR /&gt;NOTE: The DATA step has been abnormally terminated.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 4023 observations read from the data set X.&lt;BR /&gt;WARNING: The data set WORK.TEST3 may be incomplete. When this step was stopped there were 4023&lt;BR /&gt;observations and 3053 variables.&lt;BR /&gt;WARNING: Data set WORK.TEST3 was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;I don't know if I said this before (I think I did) and if it matters,&amp;nbsp; but the data file is coming from REDCap as SPSS and I am saving it as a sas&amp;nbsp; file to work with it.&lt;/P&gt;&lt;P&gt;Thank you so much for your patience.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 19:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710004#M218471</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2021-01-07T19:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710016#M218474</link>
      <description>&lt;P&gt;I suggest you open a Tech Support track. They are in the best position to help you with this problem.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 19:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710016#M218474</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-01-07T19:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710148#M218551</link>
      <description>As Tom said, the problem is due to your sas have different encoding with your sas dataset.&lt;BR /&gt;&lt;BR /&gt;a workaround way maybe &lt;BR /&gt;1) change your original dataset into CSV file &lt;BR /&gt;&lt;BR /&gt;filename x 'c:\temp\temp.csv' encoding='utf8' ;&lt;BR /&gt;proc export data=have outfile=x ........&lt;BR /&gt;&lt;BR /&gt;2)read it into SAS.&lt;BR /&gt;&lt;BR /&gt;filename x 'c:\temp\temp.csv' encoding='utf8' ;&lt;BR /&gt;proc import datafile=x out=want ........</description>
      <pubDate>Fri, 08 Jan 2021 11:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710148#M218551</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-01-08T11:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710165#M218565</link>
      <description>&lt;P&gt;You are running SAS using a single byte encoding. So there is a maximum of 256 characters that can be represented.&amp;nbsp; If the data you are reading is using a different encoding&amp;nbsp; then it is definitely possible you have some characters that cannot be represented in WLATIN1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps to take.&lt;/P&gt;
&lt;P&gt;Run PROC CONTENTS on the source dataset to see what encoding it is using.&lt;/P&gt;
&lt;P&gt;Start SAS using UTF-8 encoding, which is also sometimes called "unicode support" and then try to read the dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you cannot get SAS running using UTF-8 encoding then try telling SAS to ignore the encoding of the source dataset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test3;
 set pr.X(encoding=any);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 14:04:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710165#M218565</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-08T14:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710240#M218601</link>
      <description>&lt;P&gt;Thank you. Could you please walk me through this?&amp;nbsp;I searched to try to figure it out by myself but I can't seem to be able to.&lt;/P&gt;&lt;P&gt;I am trying to convert my SPSS file into CSV.&amp;nbsp;Using what you&amp;nbsp;suggested(test is what my SPSS file is named). When I got he errors below I tried adding the DBMS=csv but the same error shows up. What am I doing wrong? Thank you again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname pr ' my computer location';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename edited 'c:\temp\temp.csv' encoding='utf8' ;&lt;BR /&gt;proc export data= 'test' outfile= edited 'Editedtest';&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename edited 'c:\temp\temp.csv' encoding='utf8' ;&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;68 proc export data= test outfile= edited Editedtest;&lt;BR /&gt;----------&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, DATA, DBLABEL, DBMS, DEBUG, FILE, LABEL,&lt;BR /&gt;OUTFILE, OUTTABLE, REPLACE, TABLE, _DEBUG_.&lt;/P&gt;&lt;P&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;69 DBMS=csv;&lt;BR /&gt;70 Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 17:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710240#M218601</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2021-01-08T17:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710243#M218604</link>
      <description>&lt;P&gt;What are you actually trying to do here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the original source file?&amp;nbsp; Is it a SAS dataset? An SPSS file? If SPSS file what type a SAV file or a portable file.&amp;nbsp; Is it a CSV file? Something else?&lt;/P&gt;
&lt;P&gt;What are you trying to do with the data?&amp;nbsp; Use it in some analysis in SAS? Transfer it to some other format? Something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the data you are trying to read is using UTF-8 characters (for example special symbols) then you need to first figure out how to start SAS using UTF-8 encoding. How are you accessing SAS?&amp;nbsp; If you are running SAS itself on a WIndow machine then you should have separate command you can use that launches SAS with unicode support.&amp;nbsp; If you are using SAS Enterprise Guide or SAS/Studio to connect to a SAS application server then connect to a server that is configured with unicode support.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 18:06:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710243#M218604</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-08T18:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710253#M218609</link>
      <description>&lt;P&gt;I am trying to use a SPSS file (sav), saving it to sas first, to write a long code&amp;nbsp; to change this file (original SPSS) from a long format to a wide format. The SPSS file has 6.000 + entries and the sas file has only 4.000 entries due to the errors I mentioned in my original question,&amp;nbsp;I am using sas 9.4 (unicode support). So I think it already has the unicode support you are mentioning, since it is in the name? I really&amp;nbsp; do not know, as I never had this issue before. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 18:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710253#M218609</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2021-01-08T18:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710271#M218615</link>
      <description>&lt;P&gt;If the value of &amp;amp;SYSENCODING is WLATIN1 then you are not running with unicode support.&lt;/P&gt;
&lt;P&gt;Are you asking SPSS to generate the SAS dataset?&amp;nbsp; Or asking SAS to read the SPSS dataset?&amp;nbsp; Or doing something else?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 20:05:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710271#M218615</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-08T20:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710279#M218620</link>
      <description>&lt;P&gt;Thank you, That is very good for me to know.&lt;/P&gt;&lt;P&gt;I was saving the SPSS into a sas file first (as a permanent file) and then trying to work with that sas file.&lt;/P&gt;&lt;P&gt;I just realized I can actually download the data file from Redcap as a sas file. I am trying this now and see what will happen. I will let you know if I still run into issues. Thank you so much again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 20:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710279#M218620</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2021-01-08T20:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710293#M218623</link>
      <description>&lt;P&gt;So after 16 message back and forth we now learn that the source of the data is neither SPSS nor SAS, but is instead REDCAP.&lt;/P&gt;
&lt;P&gt;What other formats can you get the data out of REDCAP?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 20:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710293#M218623</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-01-08T20:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Some character data was lost during transcoding in the dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710301#M218627</link>
      <description>&lt;P&gt;I mentioned previously that the SPSS data file was coming from REDCap. REDcap is not a data format it is a data collection tool. The 2 options from REDCap is SPSS or csv, which I was not aware of and for that I apologize. REDCap provides a sas code to transform the csv data file into a sas file. I am yet to do this though, so I could still run into issues. I did learn a lot of things I did not know about with the exchange of messages here though, so I am grateful for that. Things I would otherwise never ask about. I do work with a lot of SPSS files (not quite this long though). I am constantly having to save SPSS files into sas files to be able to work with them. I don't always have access to csv files for this. I am happy I found out that REDCp does provide this option though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 21:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Some-character-data-was-lost-during-transcoding-in-the/m-p/710301#M218627</guid>
      <dc:creator>Mscarboncopy</dc:creator>
      <dc:date>2021-01-08T21:17:09Z</dc:date>
    </item>
  </channel>
</rss>

