Hi,
does anybody know about changes in numeric array initializations from Nat3.1.x to Nat4.1.4. I have got the following problem:
DEFINE DATA LOCAL
1 #ARR (N2/1:10) CONST
(*) <-1>
(01) <01>
(02) <02>
(03) <00>
(06) <00>
(07) <00>
(08) <08>
1 #I (I4)
END-DEFINE
FOR #I = 1 TO 10
DISPLAY #I(NL=2) #ARR(#I)
END-FOR
END
The occurences 3, 6, 7 are not initialized with zero, but stay to contain -1 (the first step init value).
I think, SAG has “optimized” the init/const statement to avoid initializations with zero values for numeric arrays. Unless you don’t initialize an occurence twice, this seems to be ok. But in my case, it is not!
Is there a ZAP or so available to avoid this problem? Does this problem exist with Open Systems, too?