Maximum Length of Value Labels

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Maximum Length of Value Labels

Jim Moffitt
I'm attemptig to add some value labels via syntax and I'm receiving this
error message:

>Warning # 4484. Command name: ADD VALUE LABEL

>The (ADD) VALUE LABELS command has attempted to apply a label to a
variable

>the values of which are long character strings. The variable will be

>ignored.

How many characters can a value label be?

Is there any way to work around this problem?

I'm using version 14.0.1.

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Maximum Length of Value Labels

Peck, Jon
The error message is saying that you can't have value labels for a long string (> 8 bytes) variable, not that the label itself is too long.

This restriction was removed in SPSS 16.

In prior versions one workaround is to use AUTORECODE, which will create a numeric variable corresponding to the (long) string variable.  By default the string values become the value labels, but you can, of course, change those.

HTH,
Jon Peck

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Jim Moffitt
Sent: Wednesday, January 23, 2008 8:24 PM
To: [hidden email]
Subject: [SPSSX-L] Maximum Length of Value Labels

I'm attemptig to add some value labels via syntax and I'm receiving this
error message:

>Warning # 4484. Command name: ADD VALUE LABEL

>The (ADD) VALUE LABELS command has attempted to apply a label to a
variable

>the values of which are long character strings. The variable will be

>ignored.

How many characters can a value label be?

Is there any way to work around this problem?

I'm using version 14.0.1.

=======
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD