A code book in SPSS is used to explain patterns in attributes and missing values within variables. It captures the dynamics of information tied to files and variables. To create a code book in SPSS: (1) open the data file, (2) click Analyze and select Codebook, (3) select the variables for the codebook and choose output and statistic options.