27.03.2013 Views

Brian S. Everitt A Handbook of Statistical Analyses using SPSS

Brian S. Everitt A Handbook of Statistical Analyses using SPSS

Brian S. Everitt A Handbook of Statistical Analyses using SPSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Display 1.19 Syntax Editor showing command syntax for the dialogue box in<br />

Display 1.8.<br />

options is pasted into a Syntax Editor window. Should such a window not<br />

exist at the time, <strong>SPSS</strong> will automatically create one. For example, selecting<br />

Paste on the dialogue box shown in Display 1.8 produces the Syntax Editor<br />

window given in Display 1.19. If a Syntax Editor window already exists,<br />

then <strong>SPSS</strong> will append the latest command to the contents <strong>of</strong> the window.<br />

The commands contained in a Syntax Editor window can be executed<br />

by selecting the command All… from the Run drop-down menu on the<br />

editor’s menu bar or by selecting from the toolbar. This generates<br />

output in the Output Viewer in the usual way. It is also possible to execute<br />

only selected commands in the syntax window by highlighting the relevant<br />

commands and then <strong>using</strong> the command Selection from the Run drop-down<br />

menu or by clicking the run symbol on the toolbar.<br />

The contents <strong>of</strong> the Syntax Editor window can be saved as a syntax file<br />

by <strong>using</strong> the Save or Save As command from the File drop-down menu <strong>of</strong><br />

the Syntax Editor. The extension used by <strong>SPSS</strong> to indicate syntax is *.sps.<br />

A syntax file can be opened again by <strong>using</strong> the commands File – Open –<br />

Syntax… from the Data Editor, Output Viewer, or Syntax Editor menu bar.<br />

More than one Syntax Editor can be open at one time. In that case, <strong>SPSS</strong><br />

executes the commands <strong>of</strong> the designated Syntax Editor window. By default,<br />

the window opened last is the designated window. The designation is<br />

indicated and can be changed in the same way as that <strong>of</strong> the Output Viewer<br />

windows (see Section 1.6).<br />

© 2004 by Chapman & Hall/CRC Press LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!