Date: Thu, 25 Feb 2010 14:23:46 -0800
Reply-To: ksven <svenklingemann@gmail.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: ksven <svenklingemann@gmail.com>
Subject: Re: Macro to relabel variables - help needed
In-Reply-To: <27714534.post@talk.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hm.
I guess my problem is that I am invoking the macro generating the variable
list ("!list1) by executing an external syntax file and for some reason that
does not work (directly writing it out as you did does):
Is there some obvious mistake in here? Can you save the syntax to a separate
file and try to include it as I did?
Thanks!
Sven
Include FILE='P:\list1.sps'.
3656 M> Include FILE='P:\list1.sps'.
3656 DEFINE !list1()
3656 M> DEFINE
3657 M> !list1()
3658 James Mary John
3658 M> James Mary John
3659 M> !ENDDEFINE
3660 !ENDDEFINE.
3660 M>
3662 M> * End of INCLUDE nesting level 01
3663 * End of INCLUDE nesting level 01.
3663 M>
3664 M>
!relabel vnames=1 2 3/vnames1=!list1.
3665 M>
3666 M> .
3667 M> variable labels I1 ''.
3668 M> variable labels I2 ''.
3669 M> variable labels I3 ''.
3670 M> .
3671 M> .
3672 M> .
3673 M> .
3674 M> .
3675 M> .
3676 M> .
3677 M> James Mary John
>Error # 1. Command name: James
>The first word in the line is not recognized as an SPSS command.
>This command not executed.
3678 M> .
--
View this message in context: http://old.nabble.com/Macro-to-relabel-variables---help-needed-tp27714472p27714536.html
Sent from the SPSSX Discussion mailing list archive at 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