× 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.



Ted,
Strip out the alpha characters then convert it. There are Unix type API's
like atoi or character to number procedures. If you need some code, e-mail
me directly and I'll send you one.
John Brandt
iStudio400.com
(903) 523-0708

-----Original Message-----
From: Ted Barry [mailto:tbarry@xxxxxxxxxxxxxxxxxxxx]
Sent: Wednesday, February 04, 2004 6:33 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Need to Scrub/Convert Alpha to Numeric - Unique Situation


Hi All,

I've got a unique situation where I need to convert an alpha field
containing acreage information as follows:

input field is 12A and is formatted '5.034A'  I need to place this in a
field  9,4.

output field 9 4S I'm assuming would be formatted 00005.0340

How would I go about scrubbing this?

TIA,
   Ted


_______________________________________________
This is the RPG programming on the AS400 / 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.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/04
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/04
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.