BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] “…WARNING: Transcoding failure in variable 4 for data:..” 메시지가 출력됩니다.

Started ‎06-22-2021 by
Modified ‎06-22-2021 by
Views 612

[질문]

엑셀파일을 export 한 후 데이터셋을 열어보면 한글이 깨져 보이고, “…WARNING:  Transcoding failure in variable 4 for data:..” 메시지가 출력됩니다.

 

[답변]

엑셀로 내보내려는 DATA에 비정상적인 글자(?로 표시된 부분)가 포함되어 있어서 발생한 현상으로 보입니다.

내보낼 대상데이터에 대해 cleansing작업을 진행한 후 엑셀로 내보내는 작업을 진행해 보시기 바랍니다.

ksubstr, klength함수를 사용해서 double-byte에 대한 처리작업을 진행한 후 엑셀파일로 내보내보시기 바랍니다.

(예)

data a (drop=a rename=(a1=a));

a="[구내통신] 고등교육장";

a1=substr(a,1,20); /* 문제 발생한 칼럼의 값과 같은 형태의 값 */

b=ksubstr(a,1,klength(a1));

put a= b=;

run;

Version history
Last update:
‎06-22-2021 02:04 AM
Updated by:
Contributors

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

Article Labels
Article Tags