Raynald's SPSS Tools
  • Syntax
    • SPSS Syntax Home
    • Sample Syntax Library
    • Learning Syntax
    • Debugging SPSS Syntax
    • Standard Data Files
  • Macros
    • SPSS Macros — Home
    • Sample Macro Library
    • Learning Macros
    • Debugging Macros
    • Kirill's SPSS Macros Page
  • Scripts
    • SPSS Scripts — Home
    • Sample Scripts Library
    • Learning Scripts
    • The Asynchronous Problem
  • Python
    • Python Scripts Home
    • Sample Python Library
  • R
    • R Scripts — Home
    • Sample R Library
  • Resources
    • Resources Overview
    • Blog
    • Links to SPSS (and not only SPSS) resources
    • SPSS Programming and Data Management Book
  • Sitemap
  • Feedback
  • en
    • Русский
    • Español
    • Portugues
    • Deutsch
    • Français
    • Italiano
  1. Home
  2. Macros
  3. Sample Macro Library
  4. Utilities

Utilities

  • Define Paths to Files by Macro This will save you a lot of time when you use many absolute paths in your syntax. Just define Macro which will handle path!
  • Execute Macro for Each Distinct Value of a Variable This is to automate running certain peace of code for each subgroup defined by a variable value.
  • Macro to Run Syntax with Empty Dataset Macros autogenerates dummy data to make possible running some commands which are not using data but cannot be executed without data
  • Print Message in Output Window
  • Macro to Run Code on Subsets of File
  • Run Macro with Different Sets of Parameters, Stored as Data Easily generate macro calls with different sets of parameters|arguments. Parameters are keeped in data.
  • Run Macro with Different Sets of Parameters (example 2) How to run separate macro for every param stored file parameters.
  • Quote String on the Fly This simple macro making quotes around value you passed. Then you can use it in commands requiring quotes around the text.
Related pages

...

Navigate from here
  • Sample Macro Library
  • Macro variables
  • Tutorials
  • Define Paths to Files by Macro
  • Get random page
  • Back to top

 


 

Raynald's SPSS Tools © 2001–2025, Raynald Levesque, Anton Balabanov. Click to learn more: About the project