Originally posted by j.gross:
Try this:
TABLE FILE TAB1
PRINT
SALES
AND COMPUTE
FIRST/I1=(REGION NE LAST REGION);
BASE/D12.2 = IF (FIRST) THEN SALES ELSE LAST BASE;
SHOW/D12.2 = IF (FIRST) THEN BASE ELSE SALES/BASE;
BY REGION
BY HIGHEST SALE_DT
ON TABLE HOLD AS TAB2
END
TABLE FILE TAB2
WRITE
SHOW AS ''
BY REGION
ACROSS HIGHEST SALE_DT
END