
Running this command will open the original data file from the “ori” subfolder. Next, we'll type a GET FILE command around it, resulting in We paste the filename to the end of our syntax and prefix it with ori/. It can be selected by pressing f2 after left clicking it. Right, now we'll move into the “ori” folder and copy the name of our data file. Will tell you what's been set as SPSS’ default directory. If you're not sure whether that actually worked, running We run this line in order to set our project folder as SPSS’ default directory. Next, we'll type a CD command around the path we just pasted. Next, we'll copy-paste the path to our project folder from its window into our syntax file. Right, now we'll run SPSS and open a new syntax file. Set SPSS Default Folder to Project Folder Second, putting it in a subfolder keeps it safely apart from the files we'll create and edit during the project. This is because we want to make very sure the original data file -as we received it- gets backed up with the rest of our work. Why? Well, it should be in our project folder rather than in an email or on a client's web server or something. We'll now copy the original data file into the “ori” folder. We first create this new folder and in it we'll create another folder which we call something like “original_data” or perhaps just “ori”. Creating a Project FolderĪ previous tutorial recommended keeping your project files (that is, data, syntax, output and other files) together in a single folder. It keeps things nicely organized and this eventually saves time and effort. The way we typically do so in practice may differ somewhat from what you're used to. There's several ways to open SPSS data files. SPSS – Opening Data with Syntax By Ruben Geert van den Berg under SPSS Blog
