Why space (blanks) can not be value label?

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

Why space (blanks) can not be value label?

88videos
data list list
/v1(A5).
begin data.
aaaa
text1
text2
text1
end data.
execute.
dataset name b1.
dataset activate b1.


AUTORECODE v1 /into v2.

*when I want to change 'aaa' into blanks every other value labels disappear.
Why?

ADD value labels
/v2
1 '  '.





--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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: Why space (blanks) can not be value label?

Jon Peck
I don't see the described behavior.  The value labels of v2 other than for value 1 are preserved after running your syntax.

Note, however, that if you have transformation commands preceding ADD VALUE LABELS, the ADD VALUE LABELS command will be executed before them as it is executed as soon as it is read.  AUTORECODE is considered to be a procedure, not a transformation command, because it needs to pass the data to figure out the mapping.  

On Mon, Mar 5, 2018 at 3:56 AM, 88videos <[hidden email]> wrote:
data list list
/v1(A5).
begin data.
aaaa
text1
text2
text1
end data.
execute.
dataset name b1.
dataset activate b1.


AUTORECODE v1 /into v2.

*when I want to change 'aaa' into blanks every other value labels disappear.
Why?

ADD value labels
/v2
1 '  '.





--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[hidden email]

===================== 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: Why space (blanks) can not be value label?

Rick Oliver
I don't see the described behavior either. However, I do see the issue described in the headline. A blank space as a value label appears to be ignored -- but only in the Data Editor. In output from procedures (e.g., pivot tables, charts), the blank space is used as the value label.

On Mon, Mar 5, 2018 at 8:55 AM, Jon Peck <[hidden email]> wrote:
I don't see the described behavior.  The value labels of v2 other than for value 1 are preserved after running your syntax.

Note, however, that if you have transformation commands preceding ADD VALUE LABELS, the ADD VALUE LABELS command will be executed before them as it is executed as soon as it is read.  AUTORECODE is considered to be a procedure, not a transformation command, because it needs to pass the data to figure out the mapping.  

On Mon, Mar 5, 2018 at 3:56 AM, 88videos <[hidden email]> wrote:
data list list
/v1(A5).
begin data.
aaaa
text1
text2
text1
end data.
execute.
dataset name b1.
dataset activate b1.


AUTORECODE v1 /into v2.

*when I want to change 'aaa' into blanks every other value labels disappear.
Why?

ADD value labels
/v2
1 '  '.





--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[hidden email]

===================== 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
Reply | Threaded
Open this post in threaded view
|

Re: Why space (blanks) can not be value label?

88videos
This post was updated on .
In reply to this post by Jon Peck
I first time noticed this strange behavior today, earlier as I recall (on
v.23) I could add ' ' in value labels,
but now I am on v.21, I tried something like this.


data list list
/v1(f8.0).
begin data.
0
1
2
end data.
execute.
dataset name b2.
dataset activate b2.


VALUE LABELS
/v1
0 ' a'
1 'f'
2 'm'.



data list list
/v1(f8.0).
begin data.
0
1
2
end data.
execute.
dataset name b3.
dataset activate b3.


VALUE LABELS
/v1
0 ' '
1 'f'
2 'm'.





--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (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: Why space (blanks) can not be value label?

Ki Park
The problem persist in version 24 with slightly different result.

<http://spssx-discussion.1045642.n5.nabble.com/file/t340420/spss-space.jpg>



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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: Why space (blanks) can not be value label?

Jon Peck
Again, I don't see this in V24.  I have fixpack 2 for that version installed, so something might have been fixed.

On Mon, Mar 5, 2018 at 12:50 PM, Ki Park <[hidden email]> wrote:
The problem persist in version 24 with slightly different result.

<http://spssx-discussion.1045642.n5.nabble.com/file/t340420/spss-space.jpg>



--
Sent from: http://spssx-discussion.1045642.n5.nabble.com/

=====================
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



--
Jon K Peck
[hidden email]

===================== 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