Magic_Processing(input_file, events_structure) for date is startdate to enddate if exists events_structure{date} event_detail = events_structure{date} further_process(date, event_detail) endif endfor #### RRULE:FREQ=MONTHLY;BYDAY=2SA;INTERVAL=6