QUERY Service

The QUERY service returns the current status of a specific thread.
The QUERY service returns the current status of a specific thread. You also receive the names of the Db2 subsystem and application plan that is associated with the thread.
RLX
/CAF calls the QUERY service internally after processing any CAF service requested by your REXX exec.
RLX
/CAF returns its query results into the following host variables:
B'00000000' = X’00’ = Idle B'10000000' = X’80’ = Application thread was created B'01000000' = X’40’ = Thread connected to Db2 B'00100000' = X’20’ = Application plan opened B'00010000' = X’10’ = Application plan closed B'00001000' = X’08’ = Thread disconnected from Db2 B'00000100' = X’04’ = Thread abended