|
Thank you Phil! That solved my problem. Thank you! Peter Vidal Programmer Analyst PALL Aeropower Corp. Phil Groschwitz <sublime78ska@yah To: rpg400-l@midrange.com oo.com> cc: Sent by: Subject: Re: Find the rightmost character rpg400-l-admin@mi ('/') on an address link drange.com 02/05/2002 03:59 PM Please respond to rpg400-l Peter, How about this: offset = 1 dou pos = 0 pos = %scan('/':string:offset) if pos > 0 offset = pos + 1 endif enddo The last iteration should have offset = the starting position of the file name. filename = %subst(string:offset) Phil --- Peter_Vidal@pall.com wrote: > Hi everyone. I checked on the archives in regards > to data manipulation but I > was not successful. Again, you help. > > I am reading a file that contains links to specific > engineering drawing images > in the servers. > > For example, I have a link like this: > NPR-SERVER-NT/SCANNING/Common/Steve%20Maher/EAR90881/AC9012F1240Y6.B.HPGL > > I need to just get the file name only. However, I > am trying to use the CHECKR > and CHECK commands to "surround" the file name but > apparently I can't make it to > work. > > (DRLINK is 256 char long:) > > '/' Checkr drlink DashPos > ' ' Check drlink BlankPos > Eval Link_File_Name = > %subst(drlink: > DashPos + 1: > (BlankPos - 1) - DashPos) > > The results are: > DSAHPOS = 256 > BLANKPOS = 1 > > I am pretty sure that I am doing something wrong... > HELP! > > TIA! > > Peter Vidal > Programmer Analyst > PALL Aeropower Corp. > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries > (RPG400-L) mailing list > To post a message email: RPG400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > or email: RPG400-L-request@midrange.com > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/rpg400-l. > __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.