for the following code, when I input "mpi0 abc", the program always perform show-cics-error instead of display "hello, world",
in other words, cics COMMAND "RECEIVE" didn't return Normal(0). I trace the code, I found RESP-CODE is
always 6 instead of 0, why? how to figure out? thanks,
000017 01 RESP-CODE PIC S9(8) COMP.
000018 01 RCV-BUF PIC X(80).
000019 01 RCV-LEN PIC S9(4) COMP VALUE 10.
000020 01 WK-INFO PIC X(40).
000021 /----------------*
000032 EXEC CICS RECEIVE INTO (RCV-BUF)
000033 LENGTH (RCV-LEN)
000034 MAXLENGTH (80)
000035 RESP(RESP-CODE)
000036 END-EXEC.
000037 IF RESP-CODE NOT = DFHRESP(NORMAL)
000038 PERFORM SHOW-CICS-ERROR
000039 EXEC CICS RETURN
000040 END-EXEC
000041 END-IF.
000042 MOVE 'HELLO, WORLD' TO WK-INFO.
000043 EXEC CICS SEND FROM (WK-INFO)
000044 LENGTH (12)
000045 ERASE
000046 RESP (RESP-CODE)
000047 END-EXEC.
000018 01 RCV-BUF PIC X(80).
000019 01 RCV-LEN PIC S9(4) COMP VALUE 10.
000020 01 WK-INFO PIC X(40).
000021 /----------------*
000032 EXEC CICS RECEIVE INTO (RCV-BUF)
000033 LENGTH (RCV-LEN)
000034 MAXLENGTH (80)
000035 RESP(RESP-CODE)
000036 END-EXEC.
000037 IF RESP-CODE NOT = DFHRESP(NORMAL)
000038 PERFORM SHOW-CICS-ERROR
000039 EXEC CICS RETURN
000040 END-EXEC
000041 END-IF.
000042 MOVE 'HELLO, WORLD' TO WK-INFO.
000043 EXEC CICS SEND FROM (WK-INFO)
000044 LENGTH (12)
000045 ERASE
000046 RESP (RESP-CODE)
000047 END-EXEC.