Date: Fri, 12 Jan 2007 11:05:32 -0500
Reply-To: Philippe Naud <Philippe.Naud@mels.gouv.qc.ca>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Philippe Naud <Philippe.Naud@mels.gouv.qc.ca>
Subject: RÚp. : Re: Delete macro - macro n
Content-Type: text/plain; charset=ISO-8859-1
I just want to make sure you know that once you have run the DEFINE part of your macro in a session, you dont have to re-run it again every times you call your macro. So a good way to structure your program is to put all your define statement at the beginnig and then folow it by the main code you want to execute. You should re-run your define staments only if you change the code in it but not if you pass different parameters.
>>> Samir Omerovi(BŠ <email@example.com> 2007-01-12 02:34 >>>
The problem is actually in the output. As I said I have made macro using DEFINE command which I use
to produce large quantity of tables using just few syntaxes. If I for some reason need to run the
syntax again (and that happens often) I got the following text
>Warning # 6804 in column 3. Text: V4 -(THIS IS THE NAME OF THE MACRO I CREATED)
>The macro name specified on the DEFINE command duplicates the name of a
>previously defined macro. This instance will take precedence.
I understand why this happens and I understand that I can simply delete it and think of it no
further but I was wondering if I can delete macro name through syntax so when I run it again I do
not get this message, well... it would save me some time.
From: Hal 9000 [mailto:firstname.lastname@example.org]
Sent: Thursday, January 11, 2007 9:10 PM
To: Samir Omerovi(BŠ; SPSSX-L@listserv.uga.edu
Subject: Re: Delete macro - macro name
What is the problem that you are trying to fix?
I wonder if what you mean to say is that you only want to run the macro under certain circumstances.
On 1/11/07, Samir OmeroviŠ <email@example.com> wrote:
Hi to all again,
I have question regarding Macros in SPSS. I have made macro using DEFINE command (explained to me
through this email list, which I am in debt forever). I would like to delete the macro or its name
using syntax. Is there a way to do it?
Best regards to all
Centar za istrazivanje trzista i javnog mnijenja d.o.o.
71 000 Sarajevo, Skenderija 44
Bosna i Hercegovina
Tel: +387 33 550 300
Fax: +387 33 444 226
This e-mail (and any attachment/s) contains confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
Ova e-poruka sadrzi povjerljive i/ili povlastene podatke. Ako niste osoba naznacena kao primalac
molimo odmah upozoriti posiljaoca i unistiti primljenu e-poruku. Neautorizirano kopiranje,
objavljivanje ili distribucija sadrzaja e-poruke striktno je zabranjeno.