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 (February 2005)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 21 Feb 2005 14:00:59 -0500
Reply-To:     Siraj Ur-rehman <>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Siraj Ur-rehman <>
Subject:      SPSS Macro
Content-Type: text/plain; charset="us-ascii"

Hi Guys I have the following code of SPSS vector cq13_1_ (64). do repeat i=1 to 64. compute cq13_1_(i)=1. end repeat. exe.

I am calculating 64 new variables cq13_1_1 to cq13_1_64 and I have to do this thing for 79 times until cq13_79_1 to cq13_79_64 at different places in my 3000 line syntax. So I am trying to write a macro but its not working properly and I am not very expert in macros. DEFINE first (!POSITIONAL !TOKENS(64)). vector group=!1. loop i=1 to 64. compute group(i)=1. end loop. exe. !enddefine. first cq13_1_1 to cq13_1_64. execute.

Please if someone can help me then I really appreciate it. Thanks Siraj

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