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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FILE HANDLE<br />

Overview<br />

FILE HANDLE handle /NAME=file specifications<br />

[/MODE={CHARACTER }] [/RECFORM \={FIXED } [/LRECL=n]<br />

{BINARY } {VARIABLE}<br />

{MULTIPUNCH} {SPANNED }<br />

{IMAGE }<br />

{360 }<br />

FILE HANDLE assigns a unique file handle to a file and supplies operating system specifications<br />

for the file. A defined file handle can be specified on any subsequent FILE, OUTFILE,<br />

MATRIX, or WRITE subcommands of various procedures.<br />

<strong>Syntax</strong> Rules<br />

• File handles must conform to SPSS variable naming rules. See “Variables” on p. 21<br />

• FILE HANDLE is required for reading IBM VSAM data sets, EBCDIC data files, binary<br />

data files, and character data files that are not delimited by ASCII line feeds.<br />

• If you specify 360 on the MODE subcommand, you must specify RECFORM.<br />

• If you specify IMAGE on the MODE subcommand, you must specify LRECL.<br />

Operations<br />

A file handle is used only during the current work session. The handle is never saved as part<br />

of an SPSS-format data file.<br />

NAME Subcommand<br />

NAME specifies the file you want to refer to by the file handle. The file specifications must<br />

conform to the file naming convention for the type of computer and operating system on<br />

which the program is run. See the documentation for your system for specific information<br />

about the file naming convention.<br />

MODE Subcommand<br />

MODE specifies the type of file you want to refer to by the file handle.<br />

CHARACTER Character file whose logical records are delimited by ASCII line feeds.<br />

BINARY Unformatted binary file generated by Microsoft FORTRAN.<br />

564

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

Saved successfully!

Ooh no, something went wrong!