|
Hi, > An example would be something like this: > Var1 = 'Sentence one x'25'Sentence two x'25' > Var2 = x'25' > > Unknown function would execute as follows > Array = function(var1:var2) > > After the function was run an array would look like this > Array(1) = 'Sentence one' > Array(2) = 'Sentence two' I demonstrated something like this on the RPG400-L list back in April. I wrote a subprocedure that you could call like this: x = 0; Array(*) = gettok( var1+var2 : x'25': x); For more information, see the following messages in the archive: http://archive.midrange.com/rpg400-l/200408/msg00372.html http://archive.midrange.com/rpg400-l/200408/msg00409.html
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.