In general, your request is handled in SAS by creating two data tables and then merging the results. So use
ods output Tests=OutTests;
proc quantreg data=datain.Input ci=none outest=OutCoeff ; by segment;
...
run;
data Dataout.Output; merge OutCoeff OutTests; by segment; run;
... View more