×
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.
Use %scan to find the position of the word LINE, add 5 to that position and you have the first position of the number you are after.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Steve Jones
Sent: Friday, September 05, 2008 11:23 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Scanning Text
I know this can be done alot easier than we are currently, so I thought
I would ask for your suggestions. I have a field that contains "SALES
ORDER 644535 AND LINE 5. XXXXXXX" We need to pull out the next 4
characters after LINE & put that into a character field length of 4 to
be processed later. Now we only want numbers, no characters to be in
the end result. In this example we would like to have "0005" placed
into our field. Now if the file contained "SALES ORDER 644535 AND LINE
155. xxxxxxxxx" we would need it to have "0155" The field is fixed in
length BUT the starting position of LINE could be different.
Any suggestions on how to do this?
Thanks in advance
Steve
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.