|
*!rpgle Dmyar s 80a dim(50)
Dmyar_ptr s * inz(%addr(myar)) Dmyar_string s 4000a based(myar_ptr) . . . /free pos = %scan("something":myar_string); if pos > 0; ar_ix = %int(pos/80); ar_ixpos = %fpt(pos/80); endif; . . .
if %scan("badword":myar_string); exsr abort_send; endif;
--Keith
If you use WDSC try: http://127.0.0.1:4126/help/topic/com.ibm.etools.iseries.langref.doc/c0925085641.htm#HDRBBLOO
If you use stone knives and bearskins try: http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/books/c092508429.htm#HDRBBLOO
Rob Berendt
Is there any function to search for string in an Array in ILERPG, instead of
using loops ?
Best Regards,
Luqman
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.