SPSS stores numbers in 64-bit floating-point representation. After allowing one bit for the sign and 11 for the exponent, and assuming a leading 1, that leaves enough room for 53 binary digits for the number itself. That's about 16 decimal digits - not enough for your combined ID.
The only way to represent it in a single variable is as a string. The following (untested) code should do it:
String x(20).
Compute x = concat(string(v1,n15),string(v2,n5)).
Jonathan Fry
SPSS Inc.
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]] On Behalf Of David Wright
Sent: Thursday, September 06, 2007 7:05 AM
To:
[hidden email]
Subject: adding large number & display in data editor
I have 2 id fields I need to combine.
v1 v2
920269149300936 81001
compute x=(v1*100000)+v2.
for x (F20.0).
When I do the syntax above, the data editor does not correctly display the new value, often the last 5 values are either all zeros or just 80000. Any ideas?
David.