I'm a SAS user and quite new to SPSS. I have 6 pieces of SPSS syntax that need to be run with a date change every so often.
I've set up a macro for the date in each piece of code but would like to run them all through a single piece of syntax using the include command. Is there a way to set the macro variable in the new syntax file such that it will update each of the six pieces of code without me needing to open and edit them each time?
So I have a.sps, b.sps, c.sps, d.sps, e.sps & f.sps with a macro variable in each called !date1.
I've then created a new syntax MASTER.sps:
include file "a.sps".
include file "b.sps".
include file "c.sps".
include file "d.sps".
include file "e.sps".
include file "f.sps".
Can I create a global date1 macro variable in the MASTER.sps file so that I can change the date in the master and it will carry through a,b,c,d,e & f??