Hi David,
Here with SPSS v11 your code does work. Strange. Maybe
if you omit one exclamation mark?
DEFINE prog ( ) 100101 !ENDDEFINE.
sel if (mc_prog eq prog).
Or is there something else going on. Is mc_prog really
numeric? Or is it a string 'disguised as' a numeric
variable?
Cheers!
Albert-Jan
--- David Wright <
[hidden email]> wrote:
> I have a numeric variable that I wish to use a macro
> to run a select if
>
> DEFINE !prog ( ) 100101 !ENDDEFINE.
> sel if (mc_prog eq !prog).
>
> When I run the macro I get the following error:
>
> >Error # 1. Command name: (100101
> >The first word in the line is not recognized as an
> SPSS command.
> >This command not executed.
>
> I know its a simple error but I can't find it.
>
> Thanks in advance.
>
> David
>
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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html