replication in array initialization
Gene_Gaunt-GDFlLPZ4eRKEK/[email protected] Fri, 13 Oct 2006 13:07:04 -0400
| Newsgroups | gmane.comp.lang.as400.mi |
|---|---|
| Message-ID | <[email protected]> |
I noticed MI seems to interpret replication differently between array and non-array initializations, for example: DCL DD A CHAR(6) INIT(*(1)(2)"a", *(3)(4)"b"); DCL DD B(6) CHAR(6) INIT(*(1)(2)"a", *(3)(4)"b"); this results in A: "aabbbb" and results in B: "a " "a " "b " "b " "b " "b " I'm looking for a way to initialize first element in array B to "aaaaaa" by specifying the "a" once, with replication factor 6. Is this possible? _______________________________________________ This is the MI Programming on the AS400 / iSeries (MI400) mailing list To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/mi400 or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/mi400.