|
ok sorry for the misinformation then, I have used something similar and it worked. Elonna Thompson Worldnet Services Corp Information Technologies 850-432-1700 x2204 "DeLong, Eric" <EDeLong@Sallybea To: "'rpg400-l@midrange.com'" <rpg400-l@midrange.com> uty.com> cc: Sent by: Subject: RE: Check for a numeric data rpg400-l-admin@mi drange.com 10/23/01 11:15 AM Please respond to rpg400-l I don't think that will give the correct results, since '5ABCDEF00' is between '000000000' and '999999999'. (I learned that the HARD way once. <g>) Eric DeLong Sally Beauty Company MIS-Sr. Programmer/Analyst 940-898-7863 or ext. 1863 -----Original Message----- From: EThompson@uafc.com [mailto:EThompson@uafc.com] Sent: Tuesday, October 23, 2001 11:03 AM To: rpg400-l@midrange.com Subject: Re: Check for a numeric data I would do a subst of the field and see if it is >='000000000' and <='999999999', that is if you only care that all 9 of the digits are numeric. Elonna Thompson Worldnet Services Corp Information Technologies 850-432-1700 x2204 "Wills, Mike N. (TC)" To: "'rpg400-l@midrange.com'" <rpg400-l@midrange.com> <MNWills@taylorco cc: rp.com> Subject: Check for a numeric data Sent by: rpg400-l-admin@mi drange.com 10/23/01 10:50 AM Please respond to rpg400-l How do I check to see if one part of a text field is numeric? An example of the field is: ' 12345THIS IS TEXT'. I want to check to see if the first 9 characters are numeric. TIA for any help. Mike _______________________________________________ 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. _______________________________________________ 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. _______________________________________________ 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.