Variables created as temporary before MATRIX do not automatically dissapear
if the MATRIX creates a new dataset. SPSS Statistics 28.0.1.1 and earlier (e.g., 26).
.
dataset name Data.
temporary.
compute x= 1. /*Some temporary variable
matrix.
save 0 /outfile= *. /*MATRIX creates a new active dataset
end matrix.
dataset name Data2.
*Variable X is still visible in the Data dataset (albeit it is without values, a phantom).
*And it is the error, or at least a major, annoying inconvenience.
*One has to return once again to the old dataset to run "execute"
*so that X at last an in fact disappears:.
dataset activate Data.
execute.
(I've reported the issue from inside the SPSS (the "Report an Issues" menu item). Don't know if it was accepted and registered.
------------------------------
Kirill Orlov
------------------------------
#SPSSStatistics