How do you create a current SPSS date/time stamp in your output? I can enter all the information I need for running the program, but the requirements are a current SPSS DATE/TIME stamp must be in the document when you output it into a word document
There is a way you can do this for any output from SPSS. Use the INCLUDE command to load the macro. Anytime you need the date and time, just enter the macro called DSPDATIM in your syntax file. Doing so will put the date and time just before the output from your next procedure.
Here is an example -
DEFINE DSPDATIM () .
PRESERVE .
SET PRINTBACK OFF/MPRINT OFF .
DO IF ($CASENUM = 1) .
PRINT / 'THE DATE AND TIME IS ', $TIME (DATETIME) .
END IF .
RESTORE .
!ENDDEFINE .
DSPDATIM .
EXE .
Get Answers For Free
Most questions answered within 1 hours.