Date: Fri, 6 Dec 2002 10:54:27 -0500
Reply-To: Raynald Levesque <rlevesque@videotron.ca>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Raynald Levesque <rlevesque@videotron.ca>
Subject: Re: break down in two numeric variables
In-Reply-To: <NFBBJEFBCOEIDACLNPPPGEGMCKAA.eromero@cedro.org.pe>
Content-type: text/plain; charset=iso-8859-1
Hi
DATA LIST LIST /encu.
BEGIN DATA
69401
69402
69301
69302
69303
69211
END DATA.
LIST.
COMPUTE newvar1=TRUNC(encu/100).
COMPUTE newvar2=MOD(encu,100).
EXECUTE.
HTH
Raynald Levesque rlevesque@videotron.ca
Visit my SPSS Pages http://pages.infinit.net/rlevesqu/index.htm
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of
Eduardo Romero
Sent: December 6, 2002 10:37 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: break down in two numeric variables
I have the numeric variable encu which I need to break down in two numeric
variables. Need syntax for the newvar.
encu newvar1 newvar2
69401 694 01
69402 694 02
69301 693 01
69302 693 02
69303 693 03
69201 692 01
thanks
Eduardo.