用SAS提交SAS代码

OPTIONS NOXWAIT;
%LET PATH=%STR(C:\Program Files\SAS\SAS 9.1);
%LET CODEPATH=%STR(D:\001.RIPP.MODEL);
%LET CODE=%STR(CODE.SAS);
%LET LOGNAME=%STR(CODE.LOG);
%LET LSTNAME=%STR(CODE.LST);

DATA _NULL_;
S1="'&PATH.\SAS.EXE'";
S2=" -SYSIN &CODEPATH.\&CODE";
S3=" -LOG &CODEPATH.\&LOGNAME";
S4=" -PRINT &LOG.\&LSTNAME.";
S5=" -NOTERMINAL -NOSPLASH -NOSYNTAXCHECK";
RC=SYSTEM(S1||S2||S3||S4||S5);
PUT _ALL_;
RUN;

DATA _NULL_;
S1="'&PATH.\SAS.EXE'";
S2=" -SYSIN &CODEPATH.\&CODE";
S3=" -LOG &CODEPATH.\&LOGNAME";
S4=" -PRINT &LOG.\&LSTNAME.";
S5=" -NOTERMINAL -NOSPLASH -NOSYNTAXCHECK";
CALL SYMPUTX('X_COMMAND',S1||S2||S3||S4||S5);
RUN;
%PUT _USER_;
DATA _NULL_;
CALL SYSTEM("&X_COMMAND.");
RUN;

上一篇:SAS学习笔记6 算数语句(sum、mean、min、max函数)


下一篇:新高性能I/O技术现状和发展趋势综述