|
I misspoke. The array can have <more> elements than the searched string has characters. Just make the array larger than the longest string. It can have up to 32767 elements. (I'm at v5r2, that limit may be higher now) message: 5 date: Thu, 6 Apr 2006 08:29:25 -0400 from: Michael_Schutte@xxxxxxxxxxxx subject: Re: RPGLE pgm to parse a string <<The number of elements in Array must equal the number of characters in ScanString.>> That's exactly why it was never suggested. The string doesn't always have the same amount of variables. Michael Schutte Work 614-492-7419 email michael_schutte@xxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.