I am a bit puzzled by what I am seeing when I utilize this compile option because it seems to indicate there is a problem there is not. I have this snippet of code you see below my name. This variable LK-RESPONSE-MSG-XML was set to the address of this pointer WS-REQMSG-XML-PTR which is a getmained area of storage. Problem is when the string command is executed get an error IGZ0074S to the effect value in WS-RESMSG-XML-LEN points beyond the right most character of LK-RESPONSE-MSG-XML. My expectation is SSRANGE will flag something that is actually a problem but in this case it appears to flagging something can only be coded one way.If SSRANGE flag things that may or may not be a problem I question the value of it.
John J Leonard
EXEC CICS GETMAIN
SET (WS-REQMSG-XML-PTR)
FLENGTH (WS-RESMSG-XML-LEN)
INITIMG (WS-SPACES)
END-EXEC.
SET ADDRESS OF LK-RESPONSE-MSG-XML
TO WS-REQMSG-XML-PTR
IF WS-ESBHDR-FOUND
STRING XSOP-HEADER1 DELIMITED BY SIZE
WFESB-HEADER DELIMITED BY SIZE
XSOP-HEADER2 DELIMITED BY SIZE
LK-RESPONSE-MSG-XML (1:WS-RESMSG-XML-LEN)
DELIMITED BY SIZE
XSOP-FOOTER DELIMITED BY SIZE
INTO WS-SOAP-RESPONSE-MSG
ON OVERFLOW
SET WS-OVERFLOW-YES
TO TRUE
NOT ON OVERFLOW
SET WS-OVERFLOW-NO
TO TRUE
END-STRING
END-If
John_Leonard