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 TO STATE-CODE
ASSIGN-STATE-CODE
WHEN ASSIGN-STATE-CODE = STATE-CODE-ENTRIES
(STATE-INDEX)
SET STATE-CODE-NUM TO STATE-INDEX
MOVE STATE-CODE-NUM TO ASSIGN-STATE-CODE,
STATE-CODE.
The fields STATE-CODE and ASSIGN-STATE-CODE are both
alpha numerals.
when i move ZERO to ASSIGN-STATE-CODE only then its working fine.But fir STATE-CODE its not working.I mean the problem is with the field STATE-CODE.
Can anyone help me in this?
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 TO STATE-CODE
ASSIGN-STATE-CODE
WHEN ASSIGN-STATE-CODE = STATE-CODE-ENTRIES
(STATE-INDEX)
SET STATE-CODE-NUM TO STATE-INDEX
MOVE STATE-CODE-NUM TO ASSIGN-STATE-CODE,
STATE-CODE.
The fields STATE-CODE and ASSIGN-STATE-CODE are both
alpha numerals.
when i move ZERO to ASSIGN-STATE-CODE only then its working fine.But fir STATE-CODE its not working.I mean the problem is with the field STATE-CODE.
Can anyone help me in this?