An Intermediate Guide to SPSS Programming: Using Syntax for Data Management introduces the major tasks of data management and presents solutions using SPSS syntax. This book fills an important gap in the education of many students and researchers, whose coursework has left them unprepared for the data management issues which confront them when they begin to do independent research. It also serves as an introduction to SPSS programming; all the basic features of SPSS syntax are illustrated, as are many intermediate and advanced topics such as using vectors and loops, reading complex data files, and using the SPSS macro language.
This chapter discusses functions for string variables in SPSS, including
- The substring function
- Searching for characters within a string variable
- Adding or removing leading or trailing characters
- Finding character strings identified by delimiters
All the functions discussed in this chapter operate on string variables. Numeric functions are discussed in Chapter 22, which also introduces the concept of a function, the parts of a function, and how functions are ...