×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Yeap.  That is what those three indicators are for.

See below from IBM doc about those three indicators:

Positions 71 and 72: 
The result field contains numeric characters; the low-order character
may also be a letter from A to R, since these characters have a zone of
C, D, or F, and a digit of 0 to 9. 

Positions 73 and 74: 
The result field contains both numeric characters and at least one
leading blank. For example, the values  123 or   123 set this indicator
on. However, the value  1 23 is not a valid numeric field because of the
embedded blanks, so this value does not set this indicator on. 

Note:
An indicator cannot be specified in positions 73 and 74 when a field of
length one is tested because the character field must contain at least
one numeric character and one leading blank. 
Positions 75 and 76: The result field contains all blanks.  

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Fisher, Don
Sent: Tuesday, December 12, 2006 1:44 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Does anyone use indicators anymore?

You forgot to mention that some letters are considered numbers by TESTN.
I learned that very early in my career the hard way.

Donald R. Fisher, III
Project Manager
RoomStore, Inc.
(804) 784-7600 ext. 2124
dfisher@xxxxxxxxxxxxx

<clip>
I hate TESTN:
- Not supported in Free.
- As far as I can remember, it does not recognize decimal point, + and -
sign.
- Worst of all, you got three different indicator that tells you three
different conditions.
<clip>

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



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