Hi Cynthia, Thank you so much for your response. Yes, I am using PROC REPORT. I'd been using the contents = but I'd messed up my break statement, having played around with the ordering variables I had been using. All seems to be working well now. Thanks, Simon
... View more