* 9.3에서 직접 변경하는 방법은 아직 모르겠네요;
* 에러 메시지 : File MYLIB.KCIS.CATALOG was created for a different operating system.
* 32비트 컴퓨터에서 V8버젼 카탈로그를 V9.2로 변경;
libname test v8 'c:\';
libname test1 'c:\work';
Proc copy 또는 직접 카탈로그를 test 라이브러리에서 test1라이브러리로 이동;
* 32비트 컴퓨터에서 proc cport 프로시져를 사용하여서 cpo파일 생성;
filename all 'c:\trans.cpo';
libname my32 'c:\work';
proc cport file=all lib=my32 memtype=catalog;
run;
* 64비트 컴퓨터에서 cpo파일을 proc cimport 프로시져로 읽음(수정된 카탈로그 생성됨);
filename all 'C:\trans.cpo';
libname my64 'c:\work';
proc cimport infile=all lib=my64;
run;
* 카탈로그 파일이 생성된 버젼 확인가능;
* 원본 : 8.0202M0WIN_PRO;
* 수정 : 9.0301M2X64_7PRO;
filename fmt %str("c:\work\kcis.sas7bcat");
data x;
length version $120;
infile fmt lrecl=1000 truncover;
input theline $1000.;
test=substr(theline,210,20);
test2=test;
format test2 $hex40.;
if _n_ =1 then do;
version_loc = index(theline,'2E'x);
if version_loc>0 then do
version = substr(theline,version_loc-5,30);
end;
end;
if version ne ' ' then output;
*keep version;
run;
/* Display the SAS version and operating system. */
proc print data=x;
run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.