Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

CICS :: RE: Protection Exception while move 0 to comp-5 variables

$
0
0
Author: Kevin Vaz
Posted: Tue Oct 18, 2016 6:20 pm (GMT 5.5)

Hi,
Thanks for your reply.

We are trying to initialize many comp-5 to 0

All these variables are declared as comp-5 in the same copybook.
Few of them are arrays.
so its like below where A to J are comp-5 variables.

Code:
Move 0
To A
B
C
D(A)
E
F(A)
G(A,1)
H(A,1)
I
J(A)



I think the issue is because we are moving 0 to variable(0).. and arrays in mainframe start from 1. but then why does it not fail every time?


edited to consolidate two contiguous posts


Viewing all articles
Browse latest Browse all 8500

Trending Articles