I normally use a vbscript file, which works much the same way.
You can just enter vb commands into a text file and save it with the
The windows scripting host (if enabled) will run the script when you
Set appSPSS = CreateObject("SPSS.Application")
Set SPSSdata = appSPSS.OpenDataDoc ("C:\Temp\DataTest\test.sav")
strcomm = "SAVE TRANSLATE OUTFILE='C:\Temp\DataTest\test.dat'"
strcomm = strcomm & " /TYPE=TAB /MAP /REPLACE."
appSPSS.ExecuteCommands strcomm, True
set SPSSdata = nothing
set appSPSS = nothing
which just runs some syntax to export some data as a text file.
> dear listers,
> is it possible to start and run a syntax using a xxx.bat file? And
> then automatically close SPSS?
> I have a bat-file test.bat :
> and it offcourse only opens the syntax
> or should I use scripts or macro?