Rép. : Re: Delete macro - macro name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Rép. : Re: Delete macro - macro name

Philippe Naud
Hi Samir,
 
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.
 
Philippe

>>> Samir Omerovi(Bæ <[hidden email]> 2007-01-12 02:34 >>>

Hi Gary,



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.



Samir







  _____

From: Hal 9000 [mailto:[hidden email]]
Sent: Thursday, January 11, 2007 9:10 PM
To: Samir Omerovi(Bæ; [hidden email]
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.
-Gary



On 1/11/07, Samir Omeroviæ <[hidden email]> 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



Samir





GfK BH

Centar za istrazivanje trzista i javnog mnijenja d.o.o.



Samir Omeroviæ

Researcher



71 000  Sarajevo, Skenderija 44

Bosna i Hercegovina





Tel: +387 33 550 300

Fax: +387 33 444 226

www.gfk.ba

www.gfk.com







-----------------------------------------

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.

---------------------------------------