delete variables

  1. K

    how to use characters when calling values for a variable?

    Hi, I have a database with a variable "stage" with the following values: 1, 2, 1A, 1B, 2A, 2B. I am trying to trim my data by finding all the people where the variable "stage" = 1B and delete them from the dataset. I tried using this code: data = allpeople_no1B; set...
  2. B

    Deleting Variables with Missing Data in SPSS

    Is there a quick way to delete all variables that have no data in their columns?
  3. T

    Delete Variable Syntax

    Hi all, Using syntax, is there way to delete all variables in a dataset, listing only those you want to keep? Example: Variables: A/B/C/D/E Standard Syntax (keeping A/B/C) DELETE VARIABLES D E. Syntax to keep A/B/C by listing A/B/C??? Thanks very much.