Using the command-level interface
When you are using the CICSPlex SM command-level interface, you can use the EYUVALUE built-in function to convert and test the numeric RESPONSE and REASON values returned by an API command.
As an example, consider this API command:
EXEC CPSM CONNECT
CONTEXT(WCONTEXT)
SCOPE(WSCOPE)
VERSION('0310')
THREAD(WTHREAD)
RESPONSE(WRESPONSE)
REASON(WREASON)
.
.
To test for the RESPONSE value in each of the supported languages, you
could code:
- COBOL or PL/I:
-
IF WRESPONSE NOT = EYUVALUE(OK) GO TO NOCONNECT. - C:
-
if (WRESPONSE ¬= EYUVALUE(OK)) { goto NOCONNECT; } - Assembler language:
-
which the built-in function changes to:CLC WRESPONSE,EYUVALUE(OK) BNE NOCONNECTCLC WRESPONSE,=F'1024'