Hi, I have a long hospital dataset that I need to link to another long dataset to combine information about a group of patients. The hospital dataset has admission date/time and discharge date/time and I have created a lag to show when there is a separation between one episode discharge date and the subsequent admission date of greater than one day. I now need to make this dataset 'wide' (not long to wide I think) - in order to then link it to the second dataset. Could anyone assist please? Thanking you.