LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2009)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 9 Dec 2009 05:40:09 -0800
Reply-To:     Bruce Weaver <bruce.weaver@hotmail.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Bruce Weaver <bruce.weaver@hotmail.com>
Subject:      Re: Can I remove a macro within a session?
In-Reply-To:  <SNT110-W20541BB84761F7DA001193FA8E0@phx.gbl>
Content-Type: text/plain; charset=us-ascii

Ruben van den Berg wrote: > > > Dear all, > > I'm writing a macro but it seems I can't use a name that has already been > defined as a macro; I get > > Error # 6802 in column 1024. Text: (End of Command) > The DEFINE command must begin with the name of the macro being defined. > Something other than a valid macro name was found. > This command not executed. > > > So each time I modify the macro, I append a suffix to it and add the same > suffix to the macro call but I find this somewhat inefficient. I'd rather > write something like > > > delete !function. > > define ! function () > > <blah blah> > > !enddefine. > > !function. > > Is there any command to 'UNdefine' a macro in SPSS so I can get rid of the > suffixes? > > > TIA! >

Hi Ruben. This is odd. I redefine macros all the time without altering the name. E.g., I make a first draft of the macro, try it out, and realize I need to revise something, and so on. My recollection is that in earlier versions of SPSS, I would get a warning message if I defined a macro that was using an already existing macro name, but it allowed me to proceed. At some point (v15 maybe?) the warning message no longer appeared. What version are you running?

----- -- Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM."

NOTE: My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. -- View this message in context: http://old.nabble.com/Can-I-remove-a-macro-within-a-session--tp26708500p26710320.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


Back to: Top of message | Previous page | Main SPSSX-L page