12.07.2015 Views

SPSS Programming and Data Management, 4th Edition: A Guide for ...

SPSS Programming and Data Management, 4th Edition: A Guide for ...

SPSS Programming and Data Management, 4th Edition: A Guide for ...

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

9Best Practices <strong>and</strong> Efficiency TipsFigure 2-3Status bar in comm<strong>and</strong> syntax window with current line number <strong>and</strong> column positiondisplayedProtecting the Original <strong>Data</strong>The original data file should be protected from modifications that may alter or deleteoriginal variables <strong>and</strong>/or cases. If the original data are in an external file <strong>for</strong>mat (<strong>for</strong>example, text, Excel, or database), there is little risk of accidentally overwriting theoriginal data while working in <strong>SPSS</strong>. However, if the original data are in <strong>SPSS</strong>-<strong>for</strong>matdata files (.sav), there are many trans<strong>for</strong>mation comm<strong>and</strong>s that can modify ordestroy the data, <strong>and</strong> it is not difficult to inadvertently overwrite the contents of an<strong>SPSS</strong>-<strong>for</strong>mat data file. Overwriting the original data filemayresultinalossofdatathat cannot be retrieved.There are several ways in which you can protect the original data, including:• Storing a copy in a separate location, such as on a CD, that can’t be overwritten.• Using the operating system facilities to change the read-write property of the fileto read-only. If you aren’t familiar with how to do this in the operating system,you can choose Mark File Read Only from the File menu or use the PERMISSIONSsubcomm<strong>and</strong> on the SAVE comm<strong>and</strong>.The ideal situation is then to load the original (protected) data file into <strong>SPSS</strong> <strong>and</strong> doall data trans<strong>for</strong>mations, recoding, <strong>and</strong> calculations using <strong>SPSS</strong>. The objective is toendupwithoneormorecomm<strong>and</strong>syntaxfiles that start from the original data <strong>and</strong>produce the required results without any manual intervention.

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

Saved successfully!

Ooh no, something went wrong!