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 (May 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 3 May 2005 09:06:27 -0400
Reply-To:     "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Subject:      Re: Syntax Question

Try comp.soft-sys.stat.spss:

http://groups-beta.google.com/group/comp.soft-sys.stat.spss

On Tue, 3 May 2005 05:41:59 GMT, Max <PostResponse@HERE.TNX> wrote:

>Hi all, > >What is wrong with following syntax (SPSS 12)? It complains about "exec" >inside DO REPEAT, but without "exec" values are not calculated for meds: > >/*------------------------------start----------------. >compute meds = 0 . >exec . > >DEFINE calc_meds (arg1 = !TOKENS(1)) >compute dummy = 0. >exec. >IF (!arg1 ~= LAG(!arg1)) dummy = dummy+1 . >exec. >IF (dates >= DATE.DMY(13, 7, 1999)) dummy = dummy+LAG(dummy) . >exec. >compute meds = meds + dummy . >exec. >!ENDDEFINE. > >DO REPEAT medic = apo_acetaminophen TO spectrum.29 . >calc_meds arg1 = medic . >END REPEAT print. >exec. >/*----------------------------------end---------------.


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