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. Syntax
  3. Sample Syntax Library
  4. Parse or Flag data

Parse or Flag data

(see also String Manipulation Tutorial at Learning Syntax page)

  • Extract bits from an integer
  • Extract portion of string
  • Extract portion of string starting with a digit
  • Extract Zip code from address field
  • Extract two numbers from as tring
  • Flag if last characters of string are 'Esq'
  • Parse a string into one letter per variable
  • Parse comma separated numbers
  • Parse data separated by slashes
  • Parse domain name from email addresses
  • Parse comma separated strings then autorecode results
  • Parsing a variable which has embedded line feeds
  • Remove letter at end of string and convert remaining string to a number
  • Splita string variable into plaintiff and defendant portions
  • String variable contains items separated by a slash
  • Weed out letters in a string and create a number with remaining digits
Related pages

...

Navigate from here
  • Sample Syntax Library
  • Concatenate/modify string variables
  • Data validation
  • Extract bits from an integer
  • Get random page
  • Back to top

 


 

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