Another related use of formats is to colour output using ODS styles. For example studentised residuals may be colour coded by adding this to PROC PRINT: .
VAR StudentResid / style(data)={color=white fontweight=bold background=stdres.};
. The format looks like this: .
PROC FORMAT; value stdres low - -4.00 = h00060ff -4.00 - -3.50 = h00070ff /* and so on */ +3.50 - +4.00 = h07870ff +4.00 - high = h07860ff ; RUN;