Date: Tue, 11 Oct 2005 10:10:53 -0400
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Art Kendall <Art@DrKendall.org>
Organization: Social Research Consultants
Subject: Re: Very simple question : Add a calculated var on a new .sav
Content-type: text/plain; charset=ISO-8859-1; format=flowed
If you are a beginner, you may not want to start with scripts. First get
syntax under your belt.
It is a good idea to never write over previous files. That way when you
go back to refine the process you the required info will be there.
Something like this sounds like what you are saying.
do some transforms etc.
numeric reponse (f2).
compute reponse= . . .
. . .
* once you do any procedure the variables created by the transformations
section will be in your active file.
save outfile = 'd:\project\mydata2.sav' /rename(reponse = test).
Social Research Consultants
Inside the Washington, DC beltway.
Nicolas LEBLANC wrote:
>I'm wrinting a script who run on mydata.sav.
>For each rows, I calculate a interger variable (called 'reponse' ) and I
>want to add it on a temp.sav file, in "test" column.
>In fact, it's like the calculate option, but instead of recording on the
>same file, I want to add it in "test" column in temp.sav file
>I'm a real beginner in SPPS, that's why I'd suscribe on this mailing list.
>Nicolas LEBLANC - Informaticien
>256, avenue Eugène Avinée