At 05:12 AM 4/1/2009, Gyorgy Bea wrote:
>[This loop] syntax looks for the minimum value in a set of variables
>(v1 to v7) and stores it in Qnew1: if there is any value in my
>variables (if Qcount>0) records the first not empty variable
>(compute #min=v(#n)), and compares it to the other variables to find
>the minimum.
Does the following do what you want? (Not tested)
COMPUTE Qcount = NVALID(v1 to v7).
COMPUTE Qnew1 = MAX(v1 to v7).
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD