SPSS comments expanded into macros

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SPSS comments expanded into macros

David Hitchin
It appears that if the name of a macro appears in a comment, then
although the comment begins with a * and ends with a period, the macro
is nevertheless expanded.

Is there any way to avoid this?

David Hitchin
Reply | Threaded
Open this post in threaded view
|

Re: SPSS comments expanded into macros

David Wasserman
Use the /* your comment here */ comment demarcation to avoid expansion of
macros within comments.

David Wasserman
Custom Data Analysis and SPSS Programming

----- Original Message -----
From: "David Hitchin" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, September 15, 2007 2:13 PM
Subject: SPSS comments expanded into macros


> It appears that if the name of a macro appears in a comment, then
> although the comment begins with a * and ends with a period, the macro
> is nevertheless expanded.
>
> Is there any way to avoid this?
>
> David Hitchin
>
Reply | Threaded
Open this post in threaded view
|

Re: SPSS comments expanded into macros

Albert-Jan Roskam
alternatively, you can also use SET MEXPAND = OFF just
prior to the text and SET MEXPAND = ON after it. But
/* this */ is generally nicer.



--- David Wasserman <[hidden email]> wrote:

> Use the /* your comment here */ comment demarcation
> to avoid expansion of
> macros within comments.
>
> David Wasserman
> Custom Data Analysis and SPSS Programming
>
> ----- Original Message -----
> From: "David Hitchin" <[hidden email]>
> To: <[hidden email]>
> Sent: Saturday, September 15, 2007 2:13 PM
> Subject: SPSS comments expanded into macros
>
>
> > It appears that if the name of a macro appears in
> a comment, then
> > although the comment begins with a * and ends with
> a period, the macro
> > is nevertheless expanded.
> >
> > Is there any way to avoid this?
> >
> > David Hitchin
> >
>


Cheers!
Albert-Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Did you know that 87.166253% of all statistics claim a precision of results that is not justified by the method employed? [HELMUT RICHTER]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/