For your second question with regards to merge rows and columns, you will need to provide further information, I see none of this in the attached file you posted. Generally speaking, merging cells is an Excel function not replicatable from SAS, however there are ways around this such as setting up columns which look like how you want the output to look.
Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.
Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer.