Date: Tue, 29 Jan 2008 17:04:21 -0600
Reply-To: Juan Pablo Sandoval <email@example.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Juan Pablo Sandoval <firstname.lastname@example.org>
Subject: Macro or Loop to minimize Syntax
Content-Type: text/plain; charset=ISO-8859-1
I'm running a validation syntax such as this:
if (var0010 = 1 and v0017 = 2) clean = 1.
if (var0020 = 1 and v0027 = 2) clean = 1.
if (var0040 = 1 and v0047 = 2) clean = 1.
if (var0050 = 1 and v0057 = 2) clean = 1.
if (var0750 = 1 and v0757 = 2) clean = 1.
As you can see it's a fairly long syntax, and as you can see var0010
increases by 10 every step for 75 steps until reaching var0750. I don't know
if there is some kind of syntax doing a loop of some kind to save space and
get the same results.
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
For a list of commands to manage subscriptions, send the command