I declared an array which is of character data type and I want to overlay an element in the array which is of decimal type.
Is it possible to overlay an element which is of decimal type (zoned) in to an array which is declared as character one?
The code of the following issue is like this:
ipd:arr1 s 500 dim(50)
ipd:a 4 0 overlay(arr1:*next)
If it is possible, what will be the default value of the variable 'a'?
Software/Hardware used:
iseries
ASKED:
March 20, 2013 8:50 AM
UPDATED:
March 20, 2013 11:44 AM
Because it can be tested with a half-dozen lines of code, it’s not clear what the problem is. It seems similar to an academic or interview question. Further, the lines of code have errors. Both lines need to be “fixed” before anything will happen at all, so a valid answer is tricky. Please provide a business reason for the code so we know how to reply. — Tom