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 (October 2006)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 31 Oct 2006 18:06:02 -0500
Reply-To:     Gene Maguin <emaguin@buffalo.edu>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Gene Maguin <emaguin@buffalo.edu>
Subject:      Re: Looping to select question revisited...
In-Reply-To:  <5A5BDC9663F87547AA55455B55CE59D35D6A23@PEPWMV00015.corp.pep.pvt>
Content-Type: text/plain; charset="US-ASCII"

Deborah,

I think you should replace

+ do if (start(#i) le yr_pd_wk and end(#i)>yr_pd_wk). + compute validsource=source(#i). + else. + break. + end if.

With just this. I tried to be clever and didn't work the loop logic through correctly.

+ do if (start(i) le yr_pd_wk and end(i)>yr_pd_wk). + compute validsource=source(i). + end if.

Also, given how your 'dates' are structured, you don't need to ever look at the end dates. The start dates have all the information except for the accounting for the last date.

Gene Maguin


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