BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] 문자변수를 double quotes 붙여서 내보내는 방법.

Started ‎05-04-2021 by
Modified ‎05-04-2021 by
Views 305

quote 함수를 사용하여 변수에 따옴표를 씌운 후, text 파일로 내보내기 하시기 바랍니다. quote 함수는 변수의 자리수만큼 따옴표를 씌우게 되고, 공백을 없애고 싶은 경우, compress 함수를 활용하여 작업해보시기 바랍니다.

 

예) data one;

set sashelp.class; a=quote(name); b=compress(quote(name));

run;

Version history
Last update:
‎05-04-2021 04:21 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