Search code examples
rspss

clear memory in SPSS, like what is done in R


Being an R user, I'm now trying to learn the SPSS syntax.

I sed to add the command rm(list=ls()) at the being of R script to ensure that R is empty before I go on my work.

Is there a similar command for SPSS? Thanks.


Solution

  • Close to the functional equivalent in SPSS would be

    dataset close all.
    

    This simply closes all open dataframes except for the active dataframe (and strips it of its name). If you open another dataset the previous dataframe will close automatically.