Hi community, Is there a way to keep one empty line if there are multiple contiguous lines? I want to maintain the same row order. I tried distinct, but only one empty line is returned and the original row order is lost. proc sql;
CREATE TABLE HAVE
(var1 char(10),
var2 char(10));
INSERT INTO HAVE
VALUES('A', 'B')
VALUES('', '')
VALUES('', '')
VALUES('', '')
VALUES('C', 'D')
VALUES('', '')
VALUES('', '')
VALUES('E', 'F')
VALUES('', '')
VALUES('', '')
VALUES('', '')
VALUES('', '')
VALUES('G', 'H')
;
QUIT;
proc sql;
CREATE TABLE WANT
(var1 char(10),
var2 char(10));
INSERT INTO WANT
VALUES('A', 'B')
VALUES('', '')
VALUES('C', 'D')
VALUES('', '')
VALUES('E', 'F')
VALUES('', '')
VALUES('G', 'H');
QUIT; Thanks
... View more