Search code examples
syntaxspss

Chaining SPSS Syntax files


iI have a very large (5000 lines) Syntax file and SPSS 19 chokes when I need to modify it. So I want to split the File into multiple Sub-files. But how to do this? Simply splitting them is risky, because I would have to remember to run every file. Is there a possibillity to chain several Syntax files so that I can run File A which calls B C D E? I have read about "include", but it was mentioned that it cannot cope with Identation?

Thank You


Solution

  • See INSERT (and similar discussion here). With INSERT you don't need to worry about batch syntax rules and indentation, and so you can simply chop up your monstrous syntax file into separate files and use include.

    IMO I typically chop up my syntax into separate logical steps for long routines, and I rarely have a syntax file over 400~500 lines long (and most complicated ones are around 100~200). You could always turn off syntax highlighting - but it would still be very hard code to debug and navigate being so huge.