Seems like you could use a simple macro %IF.
From the equality output data set, test to see if ProbF>0.05, assign a macro variable to contain a 1 or 0 depending on ProbF>0.05 or not, and then display the pooled or Satterthwaite p-value depending.
Example:
ods output ttests=ttest;
ods output equality=equality;
proc ttest data=sashelp.class;
class sex;
var height;
run;
data _null_;
set equality;
call symputx('equality_of_variance_test',probf>0.05);
run;
%if &equality_of_variance_test %then %do;
proc print data=ttest(where=(method='Pooled'));
run;
%end;
%else %do;
proc print data=ttest(where=(method=:'Satt'));
run;
%end;
--
Paige Miller