|
I am sorry! I should say: If %SUBST(%CHAR(input):1:1) = '0' or If %SUBST(%CHAR(input):1:2) = '00' or If %SUBST(%CHAR(input):1:3) = '000' or If %SUBST(%CHAR(input):4:6) = '000000' Next Read ... Else Processing ... ENDIF Peter Vidal/AeroPower To: rpg400-l@midrange.com PPK/Pall/US@Pall cc: Sent by: Subject: Re: Zoned field validation rpg400-l-admin@mi drange.com 10/22/01 01:13 PM Please respond to rpg400-l You can do this: If %SUBST(%CHAR(input):1:1) = '0' or If %SUBST(%CHAR(input):1:2) = '00' or If %SUBST(%CHAR(input):1:1) = '000' or If %SUBST(%CHAR(input):4:6) = '000000' Next Read ... Else Processing ... ENDIF Can someome help me with this: I have a nine digits field (9,0 S), I must validate. The 3 first positions of that field must be diferent from 0. OTH the remains 6 positions can contain a zero, but not in all 6 positions. Like this: 234670739 - this is ok 034670739 - wrong 004670739 - wrong 000670739 - wrong 234000000 - wrong Is there a easy way to handle with this. An array? A. Sousa _______________________________________________ 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.