Date: Tue, 27 Jun 2000 10:31:31 -0400
Reply-To: Mark Casazza <casazzam@ADELPHI.EDU>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Mark Casazza <casazzam@ADELPHI.EDU>
Subject: Re: SPSS-generated FILTER syntax works/fails
The problem isn't with the piece of syntax you posted. (You can cut and
paste the syntax I'm including to watch it work.)
I'd go back and make sure that "q10" is defined as a1 and that the recode
is working properly since it does work with a properly defined source
variable. Keep in mind that placement and case in a string variable does
matter thus ' a ' is different than 'A ' which is different than
' a'. It could be that nothing satisfies the requirements of your recode,
but that going through the menus SPSS can figure out what you mean so it
does what you intend.
DATA LIST LIST /Q10(A1).
('A'=1) (ELSE=0) INTO q10filt .
FILTER BY q10filt .
At 09:48 AM 2000-06-27 , David Purdy wrote:
>I'm using SPSS v10 and find that some simple RECODE/FILTER code works fine
>it's created using the Windows menus etc., but fails when the identical
>pasted into a syntax file and re-run ...
> ('A'=1) (ELSE=0) INTO q10filt .
>FILTER BY q10filt .
> >Error # 4872 in column 11. Text: Q10FILT
> >The name of the filter variable is undefined. Either the variable has not
> >been defined or its name has been misspelled.
> >This command not executed.
>Any suggestions for a possible solution would therefore be much appreciated.
>Dave Purdy [UK]
Mark V. Casazza
Senior Research Analyst
Office of Research, Assessment and Planning
Adelphi University, Levermore Hall #307
Garden City, NY 11530