Hello, I'm having an issue running the syntax below in v29. It works in v26.
BEGIN PROGRAM python3.
import time, spss
spss.SetMacroValue("!timestamp", "'" + time.strftime("%Y-%m-%d") + "'")
end program.
new file.
DATA LIST FREE /var freq.
BEGIN DATA
1 92 2 134 3 178
END DATA.
SAVE TRANSLATE OUTFILE="C:\et\time test " + !timestamp + ".csv"
/TYPE=CSV
/ENCODING='Locale'
/MAP
/REPLACE
/FIELDNAMES
/CELLS=LABELS.
execute.
#SPSS Statistics
------------------------------
Art Jack
------------------------------