SPSS Statistics

 View Only
  • 1.  Export Spss file

    Posted Fri May 20, 2022 02:16 PM
    Hi,
    
    In order to export my SPSS data set to the MPlus program, I would like to save it as a tab-delimited (*.dat) file. I would like to deactivate the "Save variable names in worksheet" function.
    
    I am using an Apple device. How can I deactivate the "Save variable names in worksheet" feature?
    
    Thank you for your support and best regards


    ------------------------------
    Mikesch Bouchehri
    ------------------------------


  • 2.  RE: Export Spss file

    Posted Fri May 20, 2022 02:22 PM
    If you are using the File > Save As... dialog, paste the syntax for the SAVE TRANSLATE. Go to the syntax window and delete the /FIELDNAMES subcommand.

    SAVE TRANSLATE OUTFILE='/Users/SPSS/tmp/test.dat'
     /TYPE=TAB
     /ENCODING='UTF8'
     /MAP
     /REPLACE
     /FIELDNAMES
     /CELLS=VALUES.

    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------



  • 3.  RE: Export Spss file

    Posted Fri May 20, 2022 02:47 PM
    I forgot to tell you one other part:

    Before you try to save, go to Edit > Options > General and uncheck "Display native macOS dialogs"

    Then a dialog will come up that will paste the syntax for you, so you can modify it.

    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------



  • 4.  RE: Export Spss file

    Posted Fri May 20, 2022 03:10 PM
    Omitting the FIELDNAMES subcommand in SAVE TRANSLATE or, equvalently, uncheck the 
    "Write variable names to file" will prevent the names from being written to the file.

    --