Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Questions about recode syntax

647 views
Skip to first unread message

mr_espresso

unread,
Jul 28, 2005, 10:37:28 AM7/28/05
to
The syntax below works, although SPSS gives me an error message (see
below). Should I be concerned?

Also, how do I label the new variables:

q39b_1m 'Senior management'
q39b_2m 'Marketing'

Thanks!

RECODE
q39b_1 q39b_2
(4 thru 5=1) (1 thru 3 =0) INTO q39b_1m q39b_2m.
EXECUTE .

VALUE LABELS q39b_1m q39b_2m
1 'Difficult / Very Difficult'
0 'Moderately / Not Difficult'
EXECUTE.

SPSS message:
>Warning # 4492 in column 1. Text: EXECUTE
>The (ADD) VALUE LABELS command included a symbol other than a value where a
>value (either numeric or string) was expected. For compatibility with
>previous systems, a parenthesized value would have been acceptable. All
>value labels up to the next slash will be ignored.

Bruce Weaver

unread,
Jul 28, 2005, 10:45:08 AM7/28/05
to


You need to terminate your VALUE LABELS command with a period, like
this:

VALUE LABELS q39b_1m q39b_2m
1 'Difficult / Very Difficult'

0 'Moderately / Not Difficult' .

No EXECUTE is needed after the value labels command either.

--
Bruce Weaver
bwe...@lakeheadu.ca
www.angelfire.com/wv/bwhomedir

mr_espresso

unread,
Jul 28, 2005, 1:03:28 PM7/28/05
to
Thanks, Bruce!

Any suggestions on syntax for labeling the new variables?

Bruce Weaver

unread,
Jul 28, 2005, 1:31:26 PM7/28/05
to


variable labels


q39b_1m 'Senior management'
q39b_2m 'Marketing'

mr_espresso

unread,
Jul 29, 2005, 1:07:29 PM7/29/05
to
Perfect!

0 new messages