Create tpstatus_inq.pl