Autoexecution of PROCESS
Autoexecution of PROCESS
(Windows only)
The instructions below will set SPSS for Windows up to automatically execute process.sps every time
that SPSS is opened. This will eliminate the need for you to execute PROCESS yourself each time you
want to use the PROCESS command during an SPSS session.
Note that these instructions have generally worked well for SPSS versions earlier than version 24.
However, many users have reported that this procedure produces errors and will not work on version
24. However, some users of SPSS 24 have had success with this procedure. If you find that it generates
errors, contact SPSS Technical Support for assistance. Andrew Hayes cannot offer any guidance or
solution to your problem if you find that this procedure generates error.
Furthermore, note that successful installation of this autoexecution script is not required to use
PROCESS. You can still use PROCESS by running the syntax file manually when you open SPSS.
Alternatively, you can use an INSERT command prior to executing a PROCESS command and SPSS will
run the PROCESS macro definition syntax, found at the location you provide in the INSERT command ;
e.g., INSERT file = ‘c:/process/process.sps’.
(1) Open SPSS as an administrator (right click the SPSS icon and select “Run as administrator”)
(3) Delete anything in the script window that opens and then type the following:
Option Explicit
Sub Main
objSPSSApp.ExecuteInsert("c:/process/process.sps",False,False,False,False)
End Sub
(6) Place the PROCESS macro definition file into this PROCESS folder, naming it “process.sps”
(7) Close SPSS and then restart SPSS. If all steps were followed without error, SPSS will automatically
run PROCESS.sps, so you can now execute a PROCESS command without first executing the PROCESS
macro yourself. If you were successful, you will probably see an output window that looks something
like this when SPSS opens: