|Date: ||Tue, 28 Jul 1998 14:45:44 -0400|
|Sender: ||"SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>|
|From: ||Libin Xu <libinxy@PGCPS.PG.K12.MD.US>|
|Organization: ||Title 1 Program, Prince George's County Public School|
|Subject: ||Re: CAN ANYONE TELL ME THE CORRECT WAY TO DO IT?|
|Content-Type: ||text/plain; charset=gb2312|
Thank you for the suggestion. I changed the command.
DO IF ((SCHOOL#='17114' AND GRADE='00' AND RUNREC>1)AND SYSMIS(LETTER)
I don't get an error message now. Another problem came
up.When I check the data, I found that all the value of the variable
print had been changed to 16 while the value of letter remained
unchanged at all no matter what the original value of letter and print
I am puzzled.
William Dudley wrote:
> Why not use a Do IF and then have two compute statements
> nested between the do if and end if bracket
> Do if ... conditions ...
> compute x = 1.
> compute y = z.
> end if.
> or something like that.
> At 12:32 PM 7/28/98 -0400, you wrote:
> >Dear SPSS-Lers,
> > I wonder if someone could find a solution for me about
> >the following command. I use an if command to find the cases I want
> >then change the values of two variables. The if statement works fine
> >now, but I can't change the values of the two variables at the same
> >time. If I change one variable, it is ok. I do need to change the
> >of the two variables at the same time though. Can anyone on the list
> >suggest a solution? Thank you in advance for your help.
> >Libin Xu
> >>From PGCPS
> >Command and the error message:
> >IF ((SCHOOL#='17114' AND GRADE='00' AND RUNREC>1)AND SYSMIS(LETTER)
> >AND SYSMIS(PRINT))
> >LETTER=52 AND PRINT=16.
> >>Warning # 532
> >>During execution of the indicated command, one of the operands of
> >or OR
> >>had other than a valid logical value. The valid logical values are
> >>and missing. The invalid value has been treated as system-missing.
> >>Command line: 87 Current case: 1 Current splitfile group: 1
> William N Dudley, PhD
> Asst Professor
> Dept Behavioral Science and Health Education
> Rollins School of Public Health
> Emory University
> Atlanta 30322
> Phone 404 727 2447
> FAX 404 727 1369