Dear SPSS Community,
Initial situation: I have opened an SPSS data file.
I then want to open a second dataset, give it a short name with DATASET NAME and then activate it with DATASET ACTIVATE in order to immediately carry out manipulations on it.
The problem is that the dataset so named and addressed is not activated, but the originally opened dataset remains activated.
Can someone please tell me how I can ensure that the second data file is actually activated.
Example:
*Open the first data file and short name assignment
GET FILE ='F:\Dropbox\Mac - PC\MundZaRR UKJ\Auswertung\MG_AZM_GESAMT_20230403_inkl._Einrichtungsdaten_t1_o_point107_ADD_GOHAI.sav'
/COMPRESSED.
DATASET NAME Data1.
*Open the second data file and assign a short name, activate and manipulate.
GET FILE='F:\Dropbox\Mac - PC\MundZaRR UKJ\Auswertung\MG_AZM_GESAMT_20230403_inkl._Einrichtungsdat_t0__t1_point107_randoblind_ADD_GOHAI.sav'.
DATASET NAME Gesamt_t0.
DATASET ACTIVATE Gesamt_t0.
SORT CASES BY code(A).
Thank yo very much in advance!
Note if I use DATASET NAME and then send the DATASET ACTIVATE code separately, then the activation succeeds. If, on the other hand, I send the data file call, the short name assignment and the activation together, the command activate fails.
Thank you very mach to adress my Problem
------------------------------
Helmut Dr. Orawa
------------------------------