LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2011)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 14 Dec 2011 21:52:40 -0800
Reply-To:     bruce phillips <bphillip@USC.EDU>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         bruce phillips <bphillip@USC.EDU>
Subject:      Re: create multiple records from one record
Comments: To: David Marso <david.marso@gmail.com>
In-Reply-To:  <1323844830956-5073662.post@n5.nabble.com>
Content-Type: text/plain; charset=iso-8859-1

Without knowing why you want to increase the # of records through duplication, why not just weight all your data? Assuming your data are not weighted...

COMPUTE DUP_WGT=30. WEIGHT BY DUP_WGT.

This will count each case 30 times.

Bruce A. Phillips Professor of Sociology & Jewish Communal Studies Louchheim School of Judaic Studies, Hebrew Union College and University of Southern California 3077 University Ave. Los Angeles, CA 90007 213-765-2151

----- Original Message ----- From: David Marso <david.marso@gmail.com> Date: Tuesday, December 13, 2011 10:47 pm Subject: Re: create multiple records from one record To: SPSSX-L@LISTSERV.UGA.EDU

> Not sure *WHY* you would wish to do this. > OTOH: > Here is an easy way. > -- > LOOP SUBREC=1 TO 30. > XSAVE OUTFILE "C:\TEMP\REPEAT30.sav" . > END LOOP. > EXE. > GET FILE "C:\TEMP\REPEAT30.sav". > > > <Owen Power&gt; wrote > > > > I have a file of about 300 records. For each unique > ‘RecordID’ on the > > file > > I am trying to create 30 duplicates of the record so that I end > up with > > 9000 records. Then for each unique ‘RecordID’ I want to > number the 30 > > created records from 01 to 30. > > > > Could someone suggest how I might do this in SPSS V.20? > > > > Thanks. > > > > ===================== > > To manage your subscription to SPSSX-L, send a message to > > LISTSERV@.UGA (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 > > > > > -- > View this message in context: http://spssx- > discussion.1045642.n5.nabble.com/create-multiple-records-from-one- > record-tp5073595p5073662.html > Sent from the SPSSX Discussion mailing list archive at Nabble.com. > > ===================== > 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 >

===================== 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


Back to: Top of message | Previous page | Main SPSSX-L page