반응형
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;
'전산Tip > SAS' 카테고리의 다른 글
[SAS] 날짜형식 변수를 문자로 변경 (변경포맷 yyyymmdd) (0) | 2010.04.30 |
---|---|
SAS 데이타셋을 오라클에 Import하기 위한 External Table DDL 스크립트 및 Import Data 파일 생성 (0) | 2008.11.10 |
SAS 볼만한 책자 (0) | 2008.10.24 |