PROC SQL;
CREATE TABLE D AS
SELECT
A.*
, B.PRC_DAY_AFTER
, (A.INITIAL_OFFER-B.PRC_DAY_AFTER)/B.PRC_DAY_AFTER as GAP
FROM D_MERGER AS A
, D_PRC AS B
WHERE A.DEALNO=B.DEALNO
;
QUIT;
Special offer for SAS Communities members
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.