Date: Thu, 1 Nov 2007 18:29:29 +0100
Reply-To: Luca Meyer <lucameyer@tiscali.it>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Luca Meyer <lucameyer@tiscali.it>
Subject: Running a syntax repeatedly for each record
Content-Type: text/plain; charset="windows-1250"
Dear all,
I am trying to run a syntax like the following for each of the 390 cases in
my dataset:
TEMP.
SELECT IF CASENR=1.
STRING V2 V3 (A200).
RECODE V1 ("text to be recoded"="text recoded") INTO V2.
LIST CASENR.
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,
Luca
Mr. Luca MEYER
Market research, data analysis & more
HYPERLINK "http://www.lucameyer.com/"www.lucameyer.com - Tel:
+39.339.495.00.21
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
18.26
=====================
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
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD