Fw: Flagging a date that occurs within two date variables

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fw: Flagging a date that occurs within two date variables

Mags
Thanks, Jim
 
This works perfectly. It is exactly what I needed. 


Mags




From:        Jim Marks <[hidden email]> 
To:        [hidden email] 
Date:        06/25/2013 10:06 AM 
Subject:        Re: Flagging a date that occurs within two date variables 
Sent by:        "SPSSX(r) Discussion" <[hidden email]> 

 
here is one solution: 

NEW FILE.
 
DATA LIST LIST / id (f8.0) st_date d_date end_date (3adate10).
 
BEGIN DATA
 
1 , 05/03/2007 , 09/22/2007 , 01/06/2008
 
2 , 02/03/2009 , 09/22/2011 , 01/06/2010
 
3 , , 04/29/2009 , 08/11/2011
 
END DATA.
 
LIST.
 

COMPUTE good_decision = d_date GE st_date and d_date LT end_date.
 
FREQUENCIES good_decision.
 

Jim Marks
Sr Market Research Manager
National Market Research
Kaiser Foundation Health Plan of the Mid-Atlantic States, Inc.
2101 E. Jefferson St.
Rockville, MD 20852
Phone: (301) 816-6822
Cell Phone: (301) 456-6164

NOTICE TO RECIPIENT:
  If you are not the intended recipient of this e-mail, you are prohibited from sharing, copying, or otherwise using or disclosing its contents.  If you have received this e-mail in error, please notify the sender immediately by reply e-mail and permanently delete this e-mail and any attachments without reading, forwarding or saving them.  Thank you.