Hello,
I currently save my SPSS data file daily with the following syntax to include date using the following code:
begin program.
import time, spss
spss.SetMacroValue("!timestamp", "'" + time.strftime("%Y-%m-%d") + "'")
end program.
file handle mydir /name = "d:/temp".
save outfile = "C:\Coronavirus\Disease Export_" + !timestamp + ".sav".
After I save it I run a few different analysis on the data that ends with a different data set.
I would now like to add code to pull the original data saved with the current date (Disease Export _Date) without closing out and starting over with: "file - open - Data...."
I think I can use the "Get Data" command, but how do I tell SPSS I want the file with the current date as this will be done daily?
#SPSSStatistics#Support#SupportMigration