Here's one that will print the daily log for the month. You can adjust the dates if you want a smaller date range. Or change it to IF MED.DT = XXXX for just one day.
LIST STU MED STU.ID STU.NM MED.CD MED.CD? MED.DT MED.ST MED.ET MED.RE MED.IN IF MED.DT >= 08/08/2016 AND MED.DT <= 08/31/2016