BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] 32bit/64bit SAS 혹은 Window/UNIX 등 서로 다른 환경에서 생성된 데이터는 별도의 변환작업 없이 사용이 가능한가요?

Started ‎06-15-2021 by
Modified ‎06-15-2021 by
Views 247

서로 다른 환경에서 생성된 데이터를 사용하기 위해서는 proc cport/proc cimport를 사용해주시기 바랍니다. 두 버전 호환을 위해서 아래와 같이 작업을 진행해 주셔야 합니다.

* 데이터를 생성한 환경에서 내보내기 작업 실행

1) PC 에서 SAS 실행

2) 아래 코드를 활용하여 내보내기

/*Data 가 있는 공간 라이브러리 선언*/

libname a "c:\temp";

/*해당 라이브러리에 들어있는 table 내보내기 실행*/

proc cport library=a file="c:\temp\test.dat";

run;

 

* 데이터가 생성된 환경과 다른 환경에서 가져오기 작업 실행

1) 아래 코드 실행

/*data 를 저장할 라이브러리 선언*/

libname b "/tmp";

/*data 불러오기 실행*/

proc cimport library=b file="C:\temp\test.dat";

run;

Version history
Last update:
‎06-15-2021 01:25 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