BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] "원종귯ㄱ대"를 읽을 때 뒤의 구분자를 같이 가져오는 에러를 수정하고 싶습니다.

Started ‎06-17-2021 by
Modified ‎06-17-2021 by
Views 281

문의하신 사항은 raw data귯ㄱ과 같은 잘못된 한글이 포함되어 구분자와 구분이 되지 않아 발생하는 현상입니다.

 

아래 예처럼 scan함수 사용하시기 바랍니다.

 

예)

data test;

infile 'C:\test\temp1.txt' lrecl=32767;

input;

length a b c $ 20;

a=scan(_infile_,1,"09"x);

b=scan(_infile_,2,"09"x);

c=scan(_infile_,3,"09"x);

run;

 

Version history
Last update:
‎06-17-2021 03:39 AM
Updated by:
Contributors

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

Article Labels
Article Tags