Date: Wed, 10 Feb 1999 11:12:37 -0500
Reply-To: MARIA_ELENA_GARCIA@WCJ.COM
Sender: "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From: "Marġa Elena Garcia" <MARIA_ELENA_GARCIA@WCJ.COM>
Subject: Re: Syntax in SPSS 7.5
Content-Type: text/plain; charset=US-ASCII
Edric:
I think it is what you need:
Example:
DO IF (IF-CLAUSE).
+ COMPUTE AGE=1998-YEAR.
ELSE IF ().
+
END IF.
This is explained in the Syntax Reference Guide or the help.
Maria Elena.
Part of the original message:
Is it posibble to execute a line in a syntax depending of a parameter ?,
somthing like an "if then else". I need to get data from a file, the file I want
to get depends of a parameter I give the syntax.
|