Hi, I am trying to join two data sets using proc SQL and both the data sets have different columns is there a way I can make my code work.See example below PROC SQL; CREATE TABLE CARS1 AS SELECT CYLINDERS ,MAKE ,MSRP ,HORSEPOWER ,INVOICE ,LENGTH FROM SASHELP.CARS ; QUIT; PROC SQL; CREATE TABLE CARS2 AS SELECT ORIGIN ,TYPE ,WEIGHT ,MAKE ,MSRP ,HORSEPOWER FROM SASHELP.CARS ; QUIT; PROC SQL; CREATE TABLE CARS3 AS SELECT MAKE ,MSRP ,HORSEPOWER ,INVOICE ,LENGTH ,CYLINDERS FROM CARS1 UNION ALL SELECT MAKE ,MSRP ,HORSEPOWER ,ORIGIN ,TYPE ,WEIGHT FROM CARS2 ; QUIT; ERROR: Column 4 from the first contributor of UNION ALL is not the same type as its counterpart from the second. ERROR: Column 5 from the first contributor of UNION ALL is not the same type as its counterpart from the second. I want to use Proc SQL only thanks Kajal
... View more