G'day. I have a large file (>5000 obs). Each child has immunization doses for they childhood vaccines they received. I inherited a data checking program that identifies which doses in the dose series (i.e, 3 Hepatitis B Doses required) are out of order. How do I get the dates in order (earlier date first, later date next, and latest date last: school childnum hepb1 hepb2 hepb3 P001 001 01/25/2008 10/24/2007 07/25/2008 (this should be hepb1: 10/24/2007, hepb2: 01/25/2008, hepb3: 07/25/2008) P001 002 10/11/2008 07/10/2008 04/10/2007 (this should be: hepb1: 04/10/2007, hepb2: 07/10/2008, hepb3: 10/11/2008) P002 001 11/15/2007 05/15/2008 02/11/2008 (this should be: hepb1: as is, hepb2: 02/11/2008, hepb3: 05/15/2008) etc... Any help you can give is much appreciated. Thanks!
... View more