Kaz's SAS, HLM, and Rasch Model
X-command in SAS and the use of DOS-prompt
Home
Large National Data Sets
Kaz Library
SAS manuals
What is "error"?
Rasch Model
HLM
SAS PROC NLMIXED and GLIMMIX
Factor Analysis
Reading output via SAS
Excel functions for Statistical Analysis
Essays on learning statistics
Statistics in Japanese
My profile
My SAS questions and SAS's responses
My work tool box

X-statement lets you use DOS-PROMPT to let you execute commands.

Opening a text file using NOTEPAD.
 
x "notepad c:\temp\temp.txt";
 
 

COPYING A FILE

options noxwait noxsync;

X %unquote(%str(%'copy "c:\temp\temp.txt" "c:\temp\temp2.txt" /y%'));

Runinng Winsteps
%let win= C:\WINSTEPS\winsteps.exe;
%let main=G:\IRTProject;
 
/*RUN WINSTEPS*/
%macro kuri2 (var1=);
x  "start &win  '&main\syntax &var1..txt' '&main\output &var1..txt'";
%mend kuri2;
%kuri2 (var1=abc1);
%kuri2 (var1=abc2);
%kuri2 (var1=abc3);

Running FACETS

option xwait xsync;

x "start C:\FACETS\facets.exe C:\temp\control_&outputname..txt";

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";

Enter supporting content here

Copyright 2005 KU
For information inquiry (AT) estat.us