Have you considered either the VALUELABEL function or the FREQUENCIES
procedure?
VALUELABELS extracts value labels; you can put them into a new variable.
FREQUENCIES shows both values and labels when you set a global option.
Take a look at Edit -> Options -> Output Labels and look at the drop bar
"Variable values in labels shown as:." Since you have asked about syntax,
see the SET command below.
Try running the following example.
SET TVars=Both TNumbers=Both ONumbers=Labels OVars=Both.
data list / color 1.
value labels
color 1 'red' 2 'blue' 3 'yellow'.
begin data.
1
2
3
3
end data.
string colorlabels(a6).
compute colorlabels=valuelabel(color).
list variables color colorlabels.
freq var color.
Tony Babinec
[hidden email]
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]] On Behalf Of
Peter Omondi
Sent: Tuesday, April 17, 2012 1:14 AM
To:
[hidden email]
Subject: Value & Lables display on data
Hi All,
I would like to someone to assist me and show me the syntax which can be
used to display both value and lables on the SPSS data.
--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Value-Lables-display-on-data-tp5645722p5645722.html
Sent from the SPSSX Discussion mailing list archive at 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
=====================
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