Aggregating using SPSS

#1
My data is about students nested in schools. I need to aggregate data at school level and my data is collected from students. I believe we have to first organize data by students and then aggregate based on student ID to get school level data (school ID is also part of data). Is this correct way of doing it?