Date: Thu, 25 Feb 2010 14:23:46 -0800
Reply-To: ksven <email@example.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: ksven <firstname.lastname@example.org>
Subject: Re: Macro to relabel variables - help needed
Content-Type: text/plain; charset=us-ascii
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?
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
3662 M> * End of INCLUDE nesting level 01
3663 * End of INCLUDE nesting level 01.
!relabel vnames=1 2 3/vnames1=!list1.
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
For a list of commands to manage subscriptions, send the command