Sas proc export excel range. (This is what I always did with Python, always easier.

Sas proc export excel range. test (firstobs=2) outfile = "exceltobemodified.