I would like to merge different SPSS files to one new file. I plan to use the MATCH command in SPSS for this. See also another question from me on that topic (Combining add cases and add variables by merging files in SPSS).
However, the number of files I want to merge automatically is not always the same. This depends on the data that a customer has been requested. On the other hand, each file will always be used in the same MATCH command.
For example, we have 7 files with data on health. When the customer has requested all data, all 7 files should be merged into one new file. However, when another customer has requested only data from 3 files, only these 3 files should be merged into one new file.
I am wondering if someone knows how I can achieve this. Maybe the files should be placed in a particular folder so that the existing files can be load/ match? The non-existing files should be ignored. Maybe a kind of 'if-then'-statement?
Many thanks in advance!