0% found this document useful (0 votes)
73 views2 pages

Autoexecution of PROCESS

This document provides instructions for automatically executing a PROCESS macro definition file in SPSS to eliminate the need to manually execute the macro each session. However, the procedure may generate errors in SPSS version 24. The instructions involve creating a script that executes the macro file on startup and saving it in the SPSS scripts folder. Placing the macro file in a new folder and restarting SPSS should then allow automatic macro execution if done without errors. Support may be needed to troubleshoot errors, as the document's author cannot provide assistance.

Uploaded by

Ionela Bogdan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views2 pages

Autoexecution of PROCESS

This document provides instructions for automatically executing a PROCESS macro definition file in SPSS to eliminate the need to manually execute the macro each session. However, the procedure may generate errors in SPSS version 24. The instructions involve creating a script that executes the macro file on startup and saving it in the SPSS scripts folder. Placing the macro file in a new folder and restarting SPSS should then allow automatic macro execution if done without errors. Support may be needed to troubleshoot errors, as the document's author cannot provide assistance.

Uploaded by

Ionela Bogdan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Automatic Execution of the PROCESS Macro Definition File

(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”)

(2) In SPSS, open a new SPSS script (FileNewScript)

(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

This document provided by or downloaded from www.afhayes.com Page 1


(4) Save this script file with file name StartClient_ in the SPSS scripts folder. Save it as a .wwd file. The
underscore following “StartClient” is important. This may be hard to locate, but you’ll find it somewhere
on your hard disk where SPSS is located. It will be buried in many layers of folders and subfolders. On
my machine, it was located at C:\Program Files (x86) \IBM\SPSS\Statistics\23\

(5) Create a folder on C: drive named “PROCESS.” (i.e., path C:/process/

(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:

This document provided by or downloaded from www.afhayes.com Page 2

You might also like