Please provide me the solution or at least a hint to this problem.
Lets Suppose I have an array having 4 elements ( A, B, C, D). I would like to have all the possible combination of the 4 elements with no repetition (i.e. in mathematical terms 4C1 + 4C2 + 4C3 + 4C4 = 15).
How can we do this in RPGLE? Please reply ASAP as my whole project delivery is stuck up because of this requirement. And please provide me a generic solution as the array can have maximum of 10 elements.
Thanks in Anticipation. Best Regards.
Moderator Note: This question was submitted to our moderator mailbox.
September 16, 2008 2:58 PM
July 31, 2010 4:13 AM