On this page:

SHS Lite -User Guide A guide to using the Scottish Household Survey simplified dataset

« Previous | Contents | Next »

Listen

SHS Lite - User Guide: A guide to using the Scottish Household Survey simplified dataset

9. SPSS Syntax

This feature of the product can be used to help you save time when analysing your data, particularly if you are continually performing the same types of analysis on similar sets of data.

SPSS syntax provides a method for you to control the product without navigating through dialog boxes. Instead, you control the application through syntax-based commands. Nearly every action you can achieve through the user interface can also be achieved through syntax.

9.1 Creating Syntax

The easiest way to create syntax is to use the Paste button located on most dialog boxes. The following example looks at creating a frequency table.

graphic

Figure 126 - Syntax editor

graphic

! Note

You can use this syntax alone or add it to a larger syntax file.

9.2 Saving a Syntax File

To save a syntax file:

graphic

9.3 Opening a Syntax File

To open a syntax file:

graphic

! Note

When you paste syntax, it will be pasted in the currently open syntax file.

9.4 Running Syntax

To run syntax:

graphic

! Note

You can also press [Ctrl] + R to run the current syntax.

The viewer window will now open to display the output for the syntax (see Figure 128).

Figure 127 - Selected syntax

graphic

Figure 128 - Output for selected syntax

graphic

« Previous | Contents | Next »

Page updated: Tuesday, May 16, 2006