by Robert Sample » Sun Aug 04, 2019 5:52 pm
What did the EXEC CICS command look like? It appears that you are confusing two different things. OPENSTATUS(cvda-variable) will set cvda-variable to a CVDA value that can then be tested in your code (COBOL would have IF CVDA-VARIABLE = DFHVALUE(OPEN) as an example). Having OPENSTATUS(19) means that the resource you are inquiring against is closed -- but the RESP and RESP2 values are not used to make that determination; only the cvda-variable matters in such a case.
If you are coding EXEC CICS SET TDQUEUE OPENSTATUS(19) then you are telling CICS that you want the TDQUEUE closed -- to find out if it is open or closed, you would use EXEC CICS INQUIRE TDQUEUE OPENSTATUS(cvda-variable). You need to post more about what you are trying to do to get better help -- code (tagged with the CODE button) is usually the best way to start.