Cynthia, This is what I am trying to do. TY. John data _null_; OPTIONS Missing=''; retain old_degree ' '; retain old_seq_no ' '; set Query_for_SORDEGR_II; file tmp1 mod; if _n_ = 1 then do; put '---' / 'Degree Information: ' ; end; If old_seq_no NE seq_no then do; put Degree $5. @10 '---> Major:' Major $30. @55 '---> School:' School $30. ; end; If old_seq_no = seq_no then do; put ' ' I want to put in leading spaces and by if two majors equal to the degree output above ****** @10 '---> Major:' Major $30. @55 '---> School:' School $30. ; end; old_degree = Degree; old_seq_no = seq_no ; ; ;
... View more