=========================================================================
Date: Sat, 22 Jul 2006 10:39:00 -0500
Reply-To: james.moffitt@thomson.com
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Jim Moffitt <james.moffitt@thomson.com>
Subject: Compound IF syntax
Content-Type: text/plain; charset="us-ascii"
I have 6 contiguous variables named q1-q26.
For all 200 of my cases all twenty-six of those variables contain either
a system missing dot, a 1, or a zero.
I have another variable named Sam.
For all 200 of my cases Sam currently contains either a system missing
dot or a 1.
How do I write a syntax line that says for every case in which none of
the values in any of the twenty-six contiguous variables are 1 and any
of the values in those twenty-six contiguous variables are zero, set the
value of Sam to 0?
|