VARSTOCASES

VARSTOCASES

/MAKE new variable ["label"] [FROM] varlist [/MAKE ...]

[/INDEX = {new variable ["label"]                                  }]
          {new variable ["label"] (make variable name)             }
          {new variable ["label"] (n) new variable ["label"](n) ...}

[/ID = new variable ["label"]]

[/NULL = {DROP**}]
         {KEEP  }

[/COUNT=new variable ["label"]]

[/KEEP={ALL**  }] [/DROP=varlist] 
       {varlist}

**Default if the subcommand is omitted.

This command reads the active dataset and causes execution of any pending commands. See the topic Command Order for more information.

Syntax for the VARSTOCASES command can be generated from the Restructure Data Wizard by selecting Restructure selected variables into cases.

Example

VARSTOCASES /MAKE newvar FROM var1 TO var4.