BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] SAS dataset을 UTF8 형태의 text로 BOM이 없이 export 하는 방법을 알려주세요.

Started ‎08-24-2021 by
Modified ‎08-24-2021 by
Views 1,478

[상세내용]

SAS dataset 을 utf-8 형식의 text 파일로 아래 코드를 이용해서 export 하고 있습니다.

 

filename exprt '/mship/t01/A018006/product.txt' encoding="utf-8";
proc export data=pd_cls

outfile=exprt

replace dbms=dlm;

delimiter='|';

run;

 

그런데, exportdata  UTF-8 BOM 형태의 파일로 생성되는데, BOM이 없이 출력하는 방법을 알 고 싶습니다.

 

[답변]

아래 옵션을 export 구문에 앞서 실행하신 후에 export 해 보시기 바랍니다.

 

options nobomfile;

 

아래 link 에서 더 상세한 정보를 확인하실 수 있습니다.

http://support.sas.com/documentation/cdl/en/nlsref/61893/HTML/default/viewer.htm#a003105792.htm

Version history
Last update:
‎08-24-2021 03:56 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