I am issuing an exec cics assign
statement in a Cobol program and getting an impossible response code. The eibresp
is returning spaces. I mean the returning value assigned in the RESP
clause of an exec cics
command. Some code below:
77 W-RESP PIC S9(08) VALUE 0 COMP.
77 W-RESP-X REDEFINES
W-RESP PIC X(04).
77 W-RESP2 PIC S9(08) VALUE 0 COMP.
EXEC CICS ASSIGN
USERID ( W-CICS-USER )
RESP ( W-RESP )
RESP2 ( W-RESP2 )
END-EXEC
DISPLAY CTE-PROG ' ARESP='W-RESP '/' W-RESP2 ' RESPX=' W-RESP-X
The value I am getting in W-RESP
is SPACES (X'40404040')
. This is a standard mainframe application, running in the IBM Zos operating system. The program that starts the request is a Natural one, executing under cics.
NATURAL PROGRAM --> COBOL PGM 1 ---> MY COBOL PGM
I could not find any explanation or user case in the web and always though the eibresp
would always, in any circumstance, return a valid value.
Can someone shed some light on why I am getting an impossible eibresp
(spaces)?
Thanks a lot.