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;