=========================================================================
Date: Fri, 28 Jul 2006 14:29:27 +0200
Reply-To: Staffan Lindberg <staffan.lindberg@anastat.se>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Staffan Lindberg <staffan.lindberg@anastat.se>
Subject: SV: Variable length to maximum
In-Reply-To: <9D4BEF69F83C9744AB34E5FE2F78F46D9AC042@matrix.mrxin.marketrx.com>
Content-Type: text/plain; charset="iso-8859-1"
You can do this with the FORMAT statement, i.e.
FORMAT VARNUM (F40.0).
FORMAT VARSTRING (A255).
best
Staffan Lindberg
National Institute of Public Health
Sweden
-----Ursprungligt meddelande-----
Från: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] För Manmit
Shrimali
Skickat: den 28 juli 2006 14:21
Till: SPSSX-L@LISTSERV.UGA.EDU
Ämne: Variable length to maximum
This is rather very simple question. However, after lot of research I still
could not find the answer. Can please anyone provide me syntax for setting
the variable length to maximum i.e numeric to 40 and string to 255.
Right now I have to manually go in width column of variable view and set it
to maximum. I have to set it to maximum as when I have wave 2 data to merge,
the length should be the same.
Thanks in advance.