전산Tip/SAS (19) 썸네일형 리스트형 데이타셋이 생성 될때까지 무한루프 돌기 rsubmit; %macro xxx; %let outtbl = temp2; proc delete data=&outtbl;run; %do %while( not %sysfunc(exist( &outtbl )) ); proc sql; connect to odbc(user=&cid password=&cpwd dsn=RMTM1); create table &outtbl as select * from connection to odbc ( select count(*) as cnt from 테이블1 where 기준년월 = '200912' ); disconnect from odbc; quit; %let u=%sysfunc(sleep(2,10)); %end; %mend; %xxx; endrsubmit; SAS 데이타셋을 오라클에 Import하기 위한 External Table DDL 스크립트 및 Import Data 파일 생성 /* Title : SAS 데이타셋을 오라클 External Table을 이용하여 Import할 DDL 스크립트 소스와 SAS 데이타셋 Export 파일 생성 Creator : grapro */ *** Parameter Setting ****************************************************************; %let gextlib = crs05; ** 오라클에 업로드할 SAS테이블 라이브러리명 **; %let gexttbl = tb_01; ** 오라클에 업로드할 SAS테이블명 **; %let glogfile = sam.log; ** External Table Import시 log파일 **; %let gdatafile = ex.txt; ** External Tab.. SAS 볼만한 책자 자유아카데미 예제로 배우는 SAS 고급 프로그래밍 영진닷컴 SAS 강자와 통계컨설팅 Second Edition 이전 1 2 3 다음