Cynthia, Sorry, I could not share my code and sample data for you to understand my problem. Let me explain you what I am doing and how I got rid of this issue. Below are my answers to your questions: 2)I have used COMPUTE blocks to skip a row in the report. 3)I have used ODS to get my output in PDF. Description: Similar SAS dataset is constructed to make standard template Data test; infile cards DSD DLM=","; input Catg $20. Rank Order; cards; Blue, 1, 1, Red,1, 2, Tiger,2,1 Lion,2,2 ; run; I will then LEFT JOIN my real time data with TEST dataset with catg as my Key. I got the right results with all categories in right format except one category where I see 2 more extra rows inserted. In first look, I though it might be some extra row blank data. But I did not find any duplicate errors. Next thing I want to test is rearranging the categories. I did rearrange the categories in my TEST dataset and this issue was resolved. I still dont understand why. Data test; infile cards DSD DLM=","; input Catg $20. Rank Order; cards; Tiger,1,1 Lion,1,2 Blue,2, 1, Red,2, 2, ; run; Thanks for your valuable inputs.
... View more