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 2005)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 6 Dec 2005 12:10:17 -0500
Reply-To:     thennig@idirect.com
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Timothy Hennigar <thennig@idirect.com>
Organization: Timothy Hennigar
Subject:      Nested Macro Question
Content-Type: text/plain; charset="us-ascii"

Apologies if this has been asked and answered previously.

I know nesting macros is legitimate. My question is given the structure below whether

the commands nested in !macro2 can refer to arguments (arg1 - arg5) defined for

!macro1.

DEFINE !macro1 ( arg1 = !TOKENS(1)

/arg2 = !TOKENS(1)

/arg3 = !TOKENS(1)

/arg4 = !TOKENS(1)

/arg5 = !CMDEND ).

... commands ...

DEFINE !macro2 ( arg6 = !TOKENS(1)

/arg7 = !CMDEND ).

... commands ...

!ENDDEFINE.

!macro2 arg6 =xx

arg7 =xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

... commands ...

!ENDDEFINE.

!macro1 arg1 ='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

arg2 ='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

arg3 ='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

arg4 =xx

arg5 =xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

Thanks!

Tim

Privacy Notice: This e-mail and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender immediately by return e-mail, do not use the information, delete this e-mail and destroy any copies. Any dissemination or use of this information by a person other than the intended recipient is unauthorized and may be illegal.


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