SASUnit Examples  Version 1.5.0
combineddataset.sas
Go to the documentation of this file.
1 
20 %MACRO combineddataset;
21 
22  proc sql noprint;
23  create table work.combineddataset as
24  select CustomerName
25  ,Customer.CustomerNumber
26  ,Contracts.ContractNumber
27  ,ContractType
28  from work.Customer left join work.CustomerContracts
29  on Customer.CustomerNumber=CustomerContracts.CustomerNumber
30  left join work.Contracts on CustomerContracts.ContractNumber=Contracts.ContractNumber;
31  quit;
32 
33 %MEND combineddataset;