27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

772 INCLUDE<br />

• If a journal file is created for the session, INCLUDE is copied to the journal file.<br />

<strong>Command</strong>s from the included file are also copied to the journal file but are treated like<br />

printed messages. Thus, INCLUDE can be executed from the journal file if the journal file<br />

is later used as a command file. <strong>Command</strong>s from the included file are executed only<br />

once.<br />

FILE Subcommand<br />

Example<br />

FILE identifies the file containing commands. FILE is the only specification on INCLUDE and<br />

is required.<br />

INCLUDE FILE=GSSLABS.<br />

• INCLUDE includes the file GSSLABS in the prompted session. When INCLUDE is<br />

executed, the commands in GSSLABS are processed.<br />

• Assume that the include file GSSLABS contains the following:<br />

DATA LIST FILE=DATA52<br />

/RELIGION 5 OCCUPAT 7 SES 12 ETHNIC 15<br />

PARTY 19 VOTE48 33 VOTE52 41.<br />

The working data file will be defined and ready for analysis after INCLUDE is executed.

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

Saved successfully!

Ooh no, something went wrong!