title: Merging files when available in specified folder
body: <p>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 (<a href="https://stackoverflow.com/questions/43763480/combining-add-cases-and-add-variables-by-merging-files-in-spss/43765862#43765862">Combining add cases and add variables by merging files in SPSS</a>). </p>
  
  <p>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. </p>
  
  <p>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.</p>
  
  <p>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?</p>
  
  <p>Many thanks in advance!</p>