Technical Support

Frequently Asked Questions about SPSS

SPSS 10.0 FAQ's

SPSS Cross Platform FAQ's

SPSS Base and ODBC FAQ's

SPSS for Windows FAQ's

SPSS for the Macintosh FAQ's

SPSS for UNIX FAQ's

SPSS for OpenVMS FAQ's


SPSS cross platform FAQ's

Q. I have some SPSS for the Macintosh 6.1 portable files that I would like to transfer to the VAX. The procedure I used to use in SPSS for the Macintosh version 4 doesn't seem to be working. How can I do this with version 6.1 of SPSS for the Macintosh?
A.The format of the SPSS portable files has changed since version 4 to for allow 8-bit characters (extended ASCII) and also to change the Macintosh file type from TEXT to SPOR (SPSS PORtable file) so that Macintosh text editors and word processors do not mistake portable files for regular TEXT files. Because a portable file is no longer TEXT, Fetch transfers it differently and alters the line endings.

There are two solutions:

1) Change the type of the portable files to TEXT, and then use Fetch like you could in version 4 of SPSS for the Macintosh. We have attached an AppleScript file to the end of this message that will do this for you: Just drop one or more portable files onto the script icon, and it will change them into text files (you'll see the icon change). This script requires the scriptable Finder in Macintosh System 7.5. or

2) If you have NCSA Telnet, you can start Telnet and use your Macintosh as an FTP server. Then *from* the VAX, ftp to your Macintosh and get the file (or mget the files) you need.

We have successfully used both methods to transfer portable files from a Macintosh machine to our VAX and read them with version 4 of SPSS for VMS.

Download the AppleScript file: SPSS Portable to Text

Q. I have a file in SPSS on my IBM PC which I would like to transfer to SPSS for the Macintosh (or vice versa). How do I do this?
A. The transfer procedure differs depending upon which platforms you are using and which versions of SPSS you have.

WINDOWS to MAC (and vice versa):
1) If you are using SPSS for Windows, release 6.1 - 7.5 and SPSS for the Macintosh, release 6.1, save the file as a regular SPSS data file. If you are using SPSS 8.0 for Windows, save the file as an SPSS Windows version 7.0 data file.
2) You will need to take the file through a translation program such as PC Exchange to fix carriage returns, line feeds, etc. To activate PC Exchange, simply copy a file between the Macintosh hard drive and a DOS-formatted diskette. (See the end of this document for more information.)
3) After translation, you should be able to open the file into SPSS for the Macintosh using the following steps:
  • Start SPSS for the Macintosh.
  • Switch back to the Finder using the application menu at the top right corner of the screen.
  • Locate the icon for the data file.
  • Drag the file's icon onto the SPSS program icon and drop it there.
    NOTE: This procedure is essentially the same when taking a file from SPSS for the Macintosh to SPSS for Windows.
  • Save the file as a regular SPSS Macintosh file on the Macintosh hard drive. Give the file an eight character name with the ".sav" extension.
  • Copy the file from the Macintosh hard drive onto a DOS diskette.
  • You should be able to open the file into SPSS for Windows as you would a regular SPSS Windows data file.

DOS to MAC:
1)If you are taking the file from SPSS/PC+ (DOS) to SPSS for the Macintosh, you should save the file as a tab-delimited file. Transfer the file through Apple File Exchange or PC Exchange as outlined below. You should be able to open the file through the Macintosh system.
  • In version 4, select "Get Data File" and specify tab-delimited.
  • In version 6.1, choose File - Open, leave the display set at "Readable Files", and when prompted, choose tab-delimited data.
  • The file can also be opened (in Macintosh or PC+) using a GET TRANSLATE command with the TYPE=TAB subcommand.

2) If you are taking the file to/from Windows 6.0.1 or earlier, or transferring the file to the SPSS for the Macintosh, release 4 from a later version of SPSS, you should transfer the file as a portable file.
These are the steps to use when transferring portable files.
STEP 1: Create the portable file using EXPORT, save it on a 3.5" DOS-formatted disk.
STEP 2: Fixing version differences. If the version of SPSS which created the file is more recent than the version which will be opening the file, you will need to "fix" the file using PORTFIX1.EXE. This file can be obtained many ways.
OBTAINING PORTFIX1.EXE
a) If you have a modem, dial the SPSS Bulletin Board System (312)836-1900. The modem settings are (8/N/1). Fill out the registration. Choose Main Menu - Files - D. Request PORTFIX1.EXE and follow instructions. Remember to use a binary transfer protocol (ie. XMODEM).
b) If you have access to the Internet, login to spss.com with the userid "anonymous". Use your own userid as a password. Change to the /pub/spss/general/util directory with the command:
     cd /pub/spss/general/util
Set ftp to BINARY mode by issuing the command "bin" and copy PORTFIX1.EXE with the command "get PORTFIX1.EXE".
c) Contact Customer Service (800)521-1337 and request the PC+/UNIX Port File Update. Refer to part number 8311-001. They will mail a disk with the utility.
USING PORTFIX1.EXE
Put the file in your SPSS directory on the PC. (This utility does not work on the Macintosh.) Type "PORTFIX1" at DOS prompt to uncompress the file. To use the utility, type "PORTFIX filename". The revised file will be saved under the same name.

STEP 3: Use Apple File Exchange or PC Exchange. (See the information below.)
STEP 4: Open the file In SPSS version 4: Open SPSS. Select GET DATA FILE from the File Menu. Select PORTABLE. Select the portable file. Once the file opens in SPSS, save the file as an SPSS system file. You can then open it using "Get System File" rather than using the above procedure. In SPSS version 6.1:
  • Start SPSS for the Macintosh.
  • Switch back to the Finder using the application menu at the top right corner of the screen.
  • Locate the icon for the data file.
  • Drag the file's icon onto the SPSS program icon and drop it there.

SOME TIPS: If the file will not open in SPSS after the above procedure, try The following possibilities.
1) PC Exchange interferes with the use of Apple File Exchange. If you have both, you will need to disable PC Exchange before running the file through AFE.
2) Some versions of Apple File Exchange have not been translating properly (ie. the version that came with System 7 Pro). Users have been able to translate the file using a program called StuffIt. A DOS to MAC text translation is available as part of this compression program. This program is Shareware and is available from Flagg's Floppies (216)235-9407. According to a customer, this translation preserved all labeling, formatting, etc. and was very easy to use.
3) Another customer was able to get a portable file from the Mac to a PC through a Bernoulli external drive.
4) Keep the 'path', which specifies the file location, as short as possible. Macintosh computers often have trouble accessing a file if the path is too long. To shorten a path, move the file closer to the desktop. Shorten the names of the hard drive, the file, and any folders which contain it.

MACINTOSH TRANSLATION UTILITIES:
To use Apple File Exchange (AFE): Open AFE. Insert the DOS diskette. Go to the "DOS to MAC" menu. Select text translation instead of the default. Click OK. Choose the destination for the file. Select the file to translate. Click on TRANSLATE.
To use PC Exchange:
Insert the DOS diskette. The icon for the disk will display the letters "PC". Simply copy the file from the diskette to the hard drive by dragging it onto the hard drive icon. The translation process will take place automatically as the file is being copied. NOTE: You will not be able to access the file directly on the disk from within the SPSS program as it has not yet been translated.

Q. Is SPSS affected by the Pentium II processor bug?
A. We do not expect the floating point unit bug in Intel's Pentium II processor to affect calculations in SPSS. We have reviewed the characteristics of the Pentium II problem and the techniques used in the underlying code in SPSS and are confident that the software carefully checks for conditions related to the floating point unit.

Q. SPSS software and the year 2000
A. SPSS software is year 2000 enabled (with the exception of the X11ARIMA procedure in the SPSS Trends module). SPSS correctly handles dates beyond the year 1999. If a user enters a date with only two digits for the year, by default SPSS assumes that the year is 19xx and stores that information. If the user wants to enter a date before 1900 or after 1999, then all four digits for the year must be entered. Beginning with SPSS 8.0, the user can specify how two digits years will be interpreted. For example, the user can specify that values greater than or equal to 05 should be interpreted as 19xx and values less than or equal to 04 should be interpreted as 20xx. All computations and functions involving dates work correctly under all date formats.

For more information, visit the Y2K section of this web site.

Q. Restructuring the case base of an SPSS file
I currently have many records for each unique id in my data set. I would like to have a single case per id without losing information. That is, I would like to restructure my data such that a variable that currently has multiple values across records but within cases, is restructured into many variables with multiple values within a single case and on a single record.

I currently have many records for each unique id in my data set. I would like to have a single case per id without losing information. That is, I would like to restructure my data such that a variable that currently has multiple values across records but within cases, is restructured into many variables with multiple values within a single case and on a single record.

A. The following is a worked example restructuring one variable. Included in this syntax is output from LIST commands. This output shows you how the sample file is being restructured at each step. If you run the sample syntax, don't include the output portions that are included here.

* To make one from many *.
DATA LIST FREE / ID Y.
BEGIN DATA
1 3 
1 4 
1 5 
1 6 
1 3 
2 5 
2 5 
2 7 
2 1 
END DATA .
COMPUTE REC=1.
IF ID EQ LAG(ID) REC=LAG(REC)+1 .
LIST.

      ID       Y      REC

    1.00     3.00     1.00
    1.00     4.00     2.00
    1.00     5.00     3.00
    1.00     6.00     4.00
    1.00     3.00     5.00
    2.00     5.00     1.00
    2.00     5.00     2.00
    2.00     7.00     3.00
    2.00     1.00     4.00

VECTOR Y1_(5).
COMPUTE Y1_(REC)=Y.
LIST.


      ID       Y     REC     Y1_1     Y1_2     Y1_3     Y1_4     Y1_5 

    1.00     3.00     1.00     3.00      .        .        .        .  
    1.00     4.00     2.00      .       4.00      .        .        .
    1.00     5.00     3.00      .        .       5.00      .        .
    1.00     6.00     4.00      .        .        .       6.00      .
    1.00     3.00     5.00      .        .        .        .       3.00
    2.00     5.00     1.00     5.00      .        .        .        .  
    2.00     5.00     2.00      .       5.00      .        .        .  
    2.00     7.00     3.00      .        .       7.00      .        .  
    2.00     1.00     4.00      .        .        .       1.00      .  


AGGREGATE OUTFILE *
 / BREAK ID
 / Y1_1 TO Y1_5 =  MAX( Y1_1 TO Y1_5).
LIST.

      ID     Y1_1     Y1_2     Y1_3     Y1_4     Y1_5    

    1.00     3.00     4.00     5.00     6.00     3.00
    2.00     5.00     5.00     7.00     1.00      .  


SPSS Base and ODBC

Q. How can I troubleshoot or diagnose an ODBC problem?