I am writing a piece of code in the Syntax of SPSSstatistics. The code is the following.

GET DATA /TYPE=XLSX

/FILE='file'

/SHEET=name 'Sheet2'

/CELLRANGE=full

/READNAMES=on

/ASSUMEDSTRWIDTH=32767.

EXECUTE.

DATASET NAME DataSet1 WINDOW=FRONT.

RANK VARIABLES= WA CI (D) /RANK /PRINT=YES /TIES=MEAN.

SELECT IF( RWA EQ '1' AND RCI EQ '1').

The problem is at the last line of the above code. SPSS selects the right data and then, SPSS creates two variables called RWA and RCI. SO far, things are fine. Then, SPSS should select cases only when the two variables assume value 1 and 1 simultaneously. Unfortunately it doesn't work. Am I wrong somewhere?

Thanks. Francesco

More Francesco Ciardiello's questions See All
Similar questions and discussions