×
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.
And at 7.2
Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power
________________________________
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> on behalf of Brian Parkins <goodprophet.bp@xxxxxxxxx>
Sent: Monday, August 15, 2016 3:07 PM
To: Midrange.Com (RPG)
Subject: Re: Scan to separate path & file
-----Original Message-----
From: John Yeung
This question arises mainly because RPG doesn't have a
"scan-from-right" BIF or opcode.
Yes it does - at V7.3. See:
http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzasd/bbscanr.htm
%SCANR (Scan Reverse for Characters) - ibm.com<
http://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzasd/bbscanr.htm>
www.ibm.com
%SCANR Examples. The simplest form of %SCANR, with two operands The following example finds the final name in a path. The value of lastSlash is 27 after it is ...
Check out the examples too - not that far removed from what the OP is
seeking.
Brian Parkins.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
As an Amazon Associate we earn from qualifying purchases.