Date: Fri, 7 May 2004 13:36:32 +0200
Reply-To: lars.h.johansson@vattenfall.com
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: L Johansson <lars.h.johansson@vattenfall.com>
Subject: Splitting in the number of files as there are number of values in
varible x
Content-Type: text/plain; charset="iso-8859-1"
How do I go about splitting a file into several files depending on how many values there are in variable x.
For instance, let's say I have ten different values in x and want all values that are the same to be saved into
a unique file.
X = 1 saved into file1
X = 2 saved into file2
etc.
I.e. the script will have to check how many values there are and make as many files as there are unique
values.
Best wishes,
Lars Johansson
|