LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (June 1999)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 17 Jun 1999 09:14:05 -0700
Reply-To:     glaser@pacific-science.com
Sender:       "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From:         Dale Glaser <glaser@PACIFIC-SCIENCE.COM>
Subject:      Re: Numbering rows
Comments: To: PEDERSEN BARRY <BPEDERSE@SMTP.ISBE.STATE.IL.US>
In-Reply-To:  <5AD21593ECDDD111986D0000F81EDAEB0202BA3E@smtp.isbe.state.il.us>
Content-Type: text/plain; charset="iso-8859-1"

The following will do the trick:

Compute id=$casenum. Execute.

This system variable will create a permanent case sequence number (see p.31 in SPSS Base 7.5 syntax reference guide)

Dale Glaser

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@UGA.CC.UGA.EDU] On Behalf Of PEDERSEN BARRY Sent: Thursday, June 17, 1999 8:48 AM To: SPSSX-L@UGA.CC.UGA.EDU Subject: Numbering rows

Thanks to everyone who made suggestions regarding methods for deleting large numbers of rows. There are several good ways.

I have one more request for today.

Now, I'd like to create a variable with case numbers. In the past, I've created a blank variable and pasted in a number series created from a spreadsheet. Surely, there's a better way. Each case has only one row. No two cases share a row. I just need SPSS to insert a number series from the top of the file to the bottom, with an increment of 1.


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