SPSS Statistics

 View Only
  • 1.  Problem with DATASET ACTIVATE ...

    Posted 9 days ago

    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
    ------------------------------


  • 2.  RE: Problem with DATASET ACTIVATE ...

    IBM Champion
    Posted 9 days ago
    The GET command automatically makes the file the active dataset.  DATASET ACTIVATE would be a no-op here.  Are you sure that it isn't active?--