SPSS System Variables
System variables track the current state of the interpretter.
The dollar sign ($) is a disallowed leading character for user-defined variables because this is reserved for system variables.
Contents
CaseNum
$CASENUM holds the current case's row number.
To create an 8-digit unique identifier number, try:
compute UniqueID = 10000000 + $casenum.
Time
$TIME holds the current date and time as the number of seconds from October 14, 1582, to the execution time of a command accessing it.