Date: Thu, 1 Nov 2007 18:29:29 +0100
Reply-To: Luca Meyer <firstname.lastname@example.org>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Luca Meyer <email@example.com>
Subject: Running a syntax repeatedly for each record
Content-Type: text/plain; charset="windows-1250"
I am trying to run a syntax like the following for each of the 390 cases in
SELECT IF CASENR=1.
STRING V2 V3 (A200).
RECODE V1 ("text to be recoded"="text recoded") INTO V2.
FREQ V2 V3.
How can I do that without having to rewrite the code 390 times? I am running
SPSS 15 and I have installed Python.
Just in case you wonder, I am using this syntax to spot the record(s)
number(s) carrying one or more "non-printing character" into my dataset. The
LIST CASENR should give me indication about the record(s) containing the
character that causes problems in following SPSS analysis.
Thank you in advance,
Mr. Luca MEYER
Market research, data analysis & more
HYPERLINK "http://www.lucameyer.com/"www.lucameyer.com - Tel:
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.14/1100 - Release Date: 30/10/2007
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