This example is to demonstrate how to read files in a folder one by one using Python script, and do something with them in SPSS.
Check it out