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 (September 2003)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 9 Sep 2003 14:14:36 -0400
Reply-To:     Mark Casazza <mark.casazza@domino1.cuny.edu>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Mark Casazza <mark.casazza@domino1.cuny.edu>
Subject:      Re: Adding leading zeros
Comments: To: "Straehle, Manfred" <Manfred.Straehle@ghv.com>
In-Reply-To:  <803E6BDF860861438D033116C3EAE1AF0441EDE7@ghvmail3>
Content-Type: text/plain; charset="iso-8859-1"

Hi Manny,

N format uses leading zeros, so it's just a format command to display them. Here's an example:

-- data list list /numvar. begin data 12345 end data.

format numvar (n6). list. format numvar (n7). list. --

Mark Casazza Director of Academic Information The City University of New York 555 West 57th St. Suite 1240 New York, NY 10019

phone: 212.541.0396 fax: 212.541.0372 mark.casazza@mail.cuny.edu

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of Straehle, Manfred Sent: Tuesday, September 09, 2003 1:27 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Adding leading zeros

How do I add leading zeros to a non-time related numerical variable. It seems that there are many resouces that discuss deleting a leading zero.

Thank-you, Manny


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