by creating a small script that queries the que_info function.
The example shows two scripts, one to display the queue info in an AIXTERM and
the other to do the actual work.
aixterm -geometry 52x6+1280+0 -fn Bld14.500 -fg black -bg yellow -cr black -T
"Gateway Queues: ^C to exit" -sl 0 -e ./qmon &
## This will create a window in the far upper right hand corner ##
echo "QUEUES INBOUND OUTBOUND # ON OUTBOUND"
/usr/lpp/lms/tools/que_info | grep C000 | cut -c11-41 | sort