|
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
|