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...

Create successful ePaper yourself

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

21Best Practices <strong>and</strong> Efficiency Tips• !client contains the client’s name. This can be used in titles of tables or graphs.• !title specifies a TITLE comm<strong>and</strong>, using the value of the macro !client as thetitle text.The master comm<strong>and</strong> syntax file might then look something like this:INSERT FILE = "c:\examples\comm<strong>and</strong>s\define_globals.sps".!title.INSERT FILE = "data\prepare data.sps".INSERT FILE = "comm<strong>and</strong>s\combine data.sps".INSERT FILE = "comm<strong>and</strong>s\do tests.sps".INCLUDE FILE = "comm<strong>and</strong>s\report groups.sps".• The first INSERT runs the comm<strong>and</strong> syntax file that defines all of the globalsettings. This needs to be run be<strong>for</strong>e any comm<strong>and</strong>s that invoke the macrosdefined in that file.• !title will print the client’s name at the top of each page of output.• "data" <strong>and</strong> "comm<strong>and</strong>s" in the remaining INSERT comm<strong>and</strong>s will be exp<strong>and</strong>edto "c:\examples\data" <strong>and</strong> "c:\examples\comm<strong>and</strong>s", respectively.Note: Using absolute paths or file h<strong>and</strong>les that represent those paths is the most reliablewaytomakesurethat<strong>SPSS</strong>finds the necessary files. Relative paths may not work asyou might expect, since they refer to the current working directory, which can changefrequently. You can also use the CD comm<strong>and</strong> or the CD keyword on the INSERTcomm<strong>and</strong> to change the working directory.

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

Saved successfully!

Ooh no, something went wrong!