1. Use the autorecode function on all your string variables making sure you check the 'Use the same recoding scheme for all variables' option. Take note which value has been assigned to your missing designation for strings, and define this value as missing for your newly created variables.
2. Sort all the variables you are interested in determining the missing responses for, including the newly recoded ones and excluding the string variables, so that they are contiguous in your data file.
3. Run the following syntax (inserting the variable names of the first and last variables in your contiguous block):
Code: Select all
compute nummissing = nmiss(firstvar to lastvar).