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.

ERASE<br />

ERASE FILE=’file’<br />

Example<br />

Overview<br />

ERASE FILE=’PRSNL.DAT’.<br />

ERASE removes a file from a disk.<br />

Basic Specification<br />

The basic specification is the keyword FILE followed by a file specification. The specified<br />

file is erased from the disk. The file specification may vary from operating system to operating<br />

system, but enclosing the filename in apostrophes generally works.<br />

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

• The keyword FILE is required but the equals sign is optional.<br />

• ERASE allows one file specification only and does not accept wildcard characters. To<br />

erase more than one file, specify multiple ERASE commands.<br />

• The file to be erased must be specified in full. ERASE does not recognize any default file<br />

extension.<br />

Operations<br />

Example<br />

ERASE deletes the specified file regardless of its type. No message is displayed unless the<br />

command cannot be executed. Use ERASE with caution.<br />

ERASE FILE ’PRSNL.DAT’.<br />

• The file PRSNL.SAV is deleted from the current directory. Whether it is an SPSS-format<br />

data file or a file of any other type makes no difference.<br />

518

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

Saved successfully!

Ooh no, something went wrong!