BEGIN{emin=1e99;} {if ($1=="ERROR"){ if (r==0){print $2,$3,$7>"p";r=1;}else{print $2,$3,$7>>"p";} if ($3