Actually SPACES are passed to ASSIGN-STATE-CODE from the map and so while SEARCH it do not perform the WHEN statements and perform AT END statement.
Also the variable STATE-CODE-NUM is defined as numeric only.So there is no problem with SET statement.And that too here as WHEN condition fails it...
When i XPED, ASRA is showed at the line
MOVE ZERO TO STATE-CODE
ASSIGN-STATE-CODE
The variables STATE-CODE and ASSIGN-STATE-CODE are defined as ALPHA NUMERICALS.
The variable STATE-CODE is in the copybook and ASSIGN-STATE-CODE comes...
Hi guys,
I am getting protection execption (ASRA) in a Cobol-CICS program.See the piece of code given below
SET STATE-INDEX TO +1.
SEARCH STATE-CODE-ENTRIES
AT END
MOVE ZERO...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.