0
if SAS code was able to execute,
and returns a nonzero value if SAS code was not able to execute.
Syntax, DOSUBL function:
DOSUBL(text-string)
text string
specifies the SAS code
to run within the DOSUBL function.
|
%macro DelayReport(empid); title "Flight Delays for Employee &Empid"; proc sql; select DelayCategory, Count(*) as Count from certadv.flightdelays d inner join certadv.flightschedule s on s.date=d.date and s.flightnumber=d.flightnumber where empid="&Empid" group by DelayCategory ; quit; title; %mend;
%Delayreport(1928) %Delayreport(1407) %Delayreport(1574) %Delayreport(1777)
data _null_; set certadv.FlightCrewNew; rc=dosubl(cats('%DelayReport(',empid,')')); run;