Hi, Here is the dummy program and the dataset data test; infile datalines delimiter=','; ; length overall_summary grief_summary $50 ; input overall_summary $ grief_summary $ count_inv count_inv_unq ; datalines ; 100% GR completed Part line, GR completed, 154, 24, Not found in Invoice table, Not found in Invoice table, 48, 48 Partial GR done, GR data not available, 2011, 567 Partial GR done, GR qty greater than Invoice qty, 468,88 Partial GR done, IBD data not available, 570,89 Partial GR done, Part line GR completed, 281,90 Partial GR done, Partial GR done, 19,10 ; run; the output i am expecting is attached below. Overall summary will have both group of Overall summary as well as Grief Summary Overall_Summary count_inv count_uniq_inv 100% GR completed 154 24 Part line GR completed 154 24 Not found in Invoice table 48 48 Not found in Invoice table 48 48 Partial GR done 3314 563 GR data not available 1976 395 GR qty greater than Invoice qty 468 57 IBD data not available 570 91 Part line GR completed 281 12 Partial GR done 19 8 Grand Total 3516 635
... View more