Running Mplus from within SAS
/*oddly, the names of the path have to be all small letters.
Mplus is reading only small letters when it reads an input file
in a batch mode. I may be wrong, but with a path name with
a mix of capital and small letters, I got an error message
*/
%let inputname=c:\temp\mplus.txt;
%let outputname=c:\temp\mplus.out;
data mplus;input line $ 1-75;
datalines4;
<HERE MPLUS SYNTAX>
;;;;
data mplus;set mplus;
file "&inputname";
put (line) (100.0);
run;
option xwait xsync;
x "mplus &inputname &outputname";
x "notepad &outputname";