Hi: It is nearly impossible to comment constructively without having data to use. The only comment I can make is that 1) you don't show complete code -- where is your ending ODS TAGSETS.EXCELXP CLOSE? 2) Your FILE= option should be a quoted string; 3) Nobody can even test your code with fake data because you're using a custom style that you do not provide 4) You can't use a COMPUTE block with PROC PRINT -- only with PROC REPORT. Also, it's not a good idea to insert a new posting into a post that was created in a different year. It's better to start a new post for a new problem and then to refer to the original 2019 post if it's relevant. Perhaps if you start a new post and include ALL your code and ALL your data, others will be able to help you. Cynthia
... View more