× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Barbara Morris posted this earlier with this link:

https://ibm-power-systems.ideas.ibm.com/ideas/IBMI-I-3007


From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Barbara Morris
Sent: Wednesday, May 11, 2022 6:49 PM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: Variable length array and Split

On 2022-05-11 11:36 a.m., Jon Paris wrote:
As I said "I wish it wasn't so but that is by design apparently."

Seems like a good prospect for an Idea (formerly RFE) to add an additional option.


There is already an Idea about this:
https://ibm-power-systems.ideas.ibm.com/ideas/IBMI-I-3007

"%split() should return an empty element where a separator character follows another separator character"

--
Barbara


-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Gad Miron
Sent: Thursday, May 12, 2022 8:28 AM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: Re: Variable length array and Split

Jon

I've lost connection to what used to be the place to enter RFEs Will you rise to the occasion and open an RFE to change/enhance %split to deal with consecutive delimiters ?

I'll vote for it if I find the d*mn link

TIA
Gad


date: Wed, 11 May 2022 19:32:58 +0300
from: Gad Miron <gadmiron@xxxxxxxxx>
subject: Re: Variable length array and Split

Thanks Jon, Paul, Daniel

As it happens, for some years we coded a home-grown split procedure
that is able to split on consecutive delimiters.
Now, when a change to the program is due I had the bright idea to
replace it with IBM's %split So that it looks more "Elegant".

I'll treasure the %elem(Dynarray) = 0 though.


Gad


--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.