Date: Fri, 21 Jun 2002 17:45:28 -0400
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Arthur J. Kendall" <Arthur.Kendall@VERIZON.NET>
Subject: Re: Inserting Variables Using Syntax
Content-Type: text/plain; charset=us-ascii
Could you explain why you need a macro or script rather than a set of syntax?
Please tell us more about what you need to do.
What is the same / different at the different time points?
Will you be doing an identical process on the later files but never putting the data from different times together?
Will you be establishing a "backbone" and replacing the values of some cases?
How important is an audit trail?
Will each file have an identical format?
Is it possible that you could make a syntax file and just include it in small syntax files that specify input and output files?
Kathy Marshall wrote:
> I am a proud SPSS GUI user, yet I do understand many of the basic concepts of syntax. However, I now need to develop my own syntax (and a macro!) that will allow adding new variables to a .txt file that has been imported into SPSS from our mainframe computer. There will also be many additional recoding, adding values, and computing functions that must be included in the syntax. This importing and recoding process will need to be done several times with newly downloaded files, so I need a syntax/macro (script?) that will handle the 3 to 4 million records that may be processed each time.
> I need to know the command structure to add a variable, rename that variable, and give it specific attributes (e.g., number of decimals, computing) once the initial syntax is pasted from the Text Import Wizard. For example, it's easy to type COMPUTE X = Y - 10 in the syntax, but how do I tell it to "add" or "delete" a variable? I am perusing Reynald's wonderful website (http://pages.infinit.net/rlevesqu/SampleSyntax.htm), but I need a little push in the right direction to get started with modifying the syntax that was created from the TextWizard.
> I'll tackle inserting my syntax into a macro next week . . .
> Thanks in advance for your assistance.
> Kathy Marshall
> Personnel Selection Consultant II
> CHP Selection Standards and Examinations Section
> Manager, Selection Research Program
> 860 Stillwater Road
> West Sacramento, CA 95605
> (916) 375-2966