FUNCTION QUERY statement syntax The FUNCTION QUERY control statement must follow certain syntactic specifications. The syntax of the FUNCTION QUERY control statement is: FUNCTION QUERY AGE= nnnnnnnn,AGEUNITS=DAYS,AGEUNITS=SECONDS,AREA=(, choose one or moreALLGLOBALLOCALOVERFLOWQSN),QUEUETYPE=(, choose one or moreALLAPPCLONGLTERMDEADQOTMAREMOTESHORTSERIALSUSPENDTRANSACTION),SBMPxx,1RCT= Y,TOPAM= nn,TOPLA= nn,TOPLM= nn,TOPSM= nnNotes:1 Required for all jobs that are started because a threshold was crossed.