issue about index value
Posted: Wed Sep 05, 2012 2:50 am
hello,
my code is:
before establish message table always have:
QUESTION 1: why always put the 2 "set" statement before we access the message table?
question 2: when the first "set" completed, the value of MP-MESSAGE-IX is 1,
but when the second "set" completed, the value of MP-MESSAGE-IX is 'X FFFF60 instead of zero,
thank you for any idea,
Helen
my code is:
01 MP-MESSAGE-TABLE.
05 FILLER OCCURS 350 TIMES
INDEXED BY MP-MESSAGE-IX.
10 MP-MESSAGE PIC X(157).
10 FILLER PIC X(3).
05 FILLER OCCURS 350 TIMES
INDEXED BY MP-MESSAGE-IX.
10 MP-MESSAGE PIC X(157).
10 FILLER PIC X(3).
before establish message table always have:
SET ME-MESSAGE-IX TO 1
SET MP-MESSAGE-IX DOWN BY 1
SET MP-MESSAGE-IX DOWN BY 1
QUESTION 1: why always put the 2 "set" statement before we access the message table?
question 2: when the first "set" completed, the value of MP-MESSAGE-IX is 1,
but when the second "set" completed, the value of MP-MESSAGE-IX is 'X FFFF60 instead of zero,
thank you for any idea,
Helen