290 pts.
 Arrays in AS/400
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

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question. Michael Tidmarsh   11,380 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 107,735 pts.