proc sort data=cars out=sortcars;
by type;
run;
data tourdetails
vendordetails;
set sortcar;
by type;
Money=Wheelbase *Length;
output tourdetails;
if First.type then
do;
VendorMoney=0;
end;
VendorMoney + Money;
if Last.type then output vendordetails;
run;
proc print data=tourdetails;
title 'Detail Records: Dollars Spent on Individual Tours';
run;
proc print data=vendordetails;
title 'Vendor Totals: Dollars Spent and Bookings by Vendor';
run; iam new to SAS, can someone please explain me the flow of the code?? i have attached the input data below. what will be the output?
... View more