Macros and functions designed to match large data for prospective cohort study designs