I am writing a macro for a school assignment that will pass the name of an airline to the macro, I am sure it has something to do with character strings and " and ' that are missing, But it will not run. Please tell me what I am doing wrong.
%macro select airine=;
proc means data=mytables.airtraffic noprint ;
where bosflights gt 0 and bospassengers gt 0;
by &airline;
var bosflights bospassengers;
output out=mytables.bosflightsairport sum (bosflights bospassengers)= flights passengers;`
run;
%mend select;
%select airline = Envoy Air;