IBM Support

Is there a way to close this new data set window through SPSS command syntax?

Troubleshooting


Problem

I am using SPSS/PASW Statistics. Everytime I run my analysis, SPSS/Statistics opens a new dataset which I do not want and leaves it open. Is there a way to close this new dataset window through SPSS command syntax?

Resolving The Problem

Yes there is, for the most part. The DATASET CLOSE command will allow you to close the new unwanted windows. To activate this command open a syntax window type in the following line:
DATASET CLOSE *.

This will close the active file upon activation of another file during your session of SPSS. If you wish to repeat this rule on the next file, rerun the line above. The working dataset remains active but has no name.

Additionaly you may choose a particular file to be closed or multiple files.

To close a particular file such as MYFILE.sav, run the following line:
DATASET CLOSE myfile.sav.

If ALL is specified, all associations with datasets are broken. All the datasets except the working dataset and their data windows are closed.
SPSS Development has been notified in regards to adding an option to globally close datasets upon activation of another file

[{"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"18.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Historical Number

61384

Document Information

Modified date:
16 April 2020

UID

swg21478047