Nice solution.
Id like to explain it some.
RS="QUIT q\n" This sets the record selector to
QUIT q\n instead of normal new line
\n.
Since this file starts with
QUIT q\n, we need to suppress the first output or it will be blank. This is done with skipping record #1 by saying that it must be greater than 1
NR>1 before printing anything.
Then print field
$1,$4,$6,$8
$1 first field after
QUIT q\n
$4 field after SectorAntenna=1
$6 field after SectorAntenna=2
$8 field after SectorAntenna=3
Buy is not printed since its on an odd field number and not field #1