|
basenamebasename: 001-3001 usage: basename string [suffix]
I'd not count on the period being there, or that the extension is 3
characters. Maybe back in the Windows 3.1 days. :)
The scan should work for the last /, but I would also convert \ to / in the
string using the %scanrpl BIF first, then look for the last /. You never
know how the data will get in there.
Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #21 <https://www.bvstools.com/mailtool.html>: Superior
Product Support - BVSTools has proven over the past 20+ years and working
with thousands of customers all over the world and many different SMTP
servers to have superior support for our products. We feel functionality is
important, but just as important is making sure that emails and phone calls
for support are answered as quickly as possible. During working hours
you'll often get a response in less than 30 minutes.
On Wed, Aug 1, 2018 at 8:26 AM Ed Waldschmidt <ewaldschmidt@xxxxxxxxxx>
wrote:
I would use %Scan in RPG free to do this. This would return theposition
you are looking for. For example, look for the ‘.’ and look at thethe
position and then scan left for the ‘/’ plus one would be the start of
file name. The position where you found the ‘.’ Plus 3 would your fullneed
extension
https://www.itjungle.com/2009/02/25/fhg022509-story01/
Ed Waldschmidt
IT Project Manager|PHD, Inc.
9009 Clubridge Drive
260.479.2283
*********************************************
[cid:1__=0ABBF515DFC231328f9e8a93df93869091@local]
http://www.phdinc.com/
[cid:image002.jpg@01D201BD.96D3B7F0]<
https://www.phdinc.com/resources/socialmedia/>
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> On Behalf Of
p.caroti@xxxxxxxx
Sent: Wednesday, August 1, 2018 9:19 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Retrive file name from full path
Hi all
Suppose i have a full path name like '/tmp/myfolder/myfile.xls' and i
to estract the "myfile.xls" string (the file's name ), how can i do it(in
RPGLE ?)list
Thanks in advance
---
Questa e-mail è stata controllata per individuare virus con Avast
antivirus.
https://www.avast.com/antivirus<https://www.avast.com/antivirus>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx<mailto:<
MIDRANGE-L@xxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l<
https://lists.midrange.com/mailman/listinfo/midrange-l>
or email: MIDRANGE-L-request@xxxxxxxxxxxx<mailto:
MIDRANGE-L-request@xxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l<
https://archive.midrange.com/midrange-l>.
Please contact support@xxxxxxxxxxxx<mailto:support@xxxxxxxxxxxx> for any
subscription related questions.
Help support midrange.com<http://midrange.com> by shopping at amazon.com
http://amazon.com> with our affiliate link: http://amzn.to/2dEadiD<is
http://amzn.to/2dEadiD>
Disclaimer Confidentiality Notice: This email, and any attachments and/or
documents linked to this email, are intended for the addressee and may
contain information that is privileged, confidential, proprietary, or
otherwise protected by law. Any dissemination, distribution, or copying
prohibited unless otherwise specified. This notice serves as aerror,
confidentiality marking for the purpose of any confidentiality or
nondisclosure agreement. If you have received this communication in
please contact the original sender.list
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
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.