All this old stuff makes you appreciate free-format even more, doesn't it?

Roger Harman
COMMON Certified Application Developer - ILE RPG on IBM i on Power




-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Vernon Hamberg
Sent: Sunday, May 17, 2020 7:29 PM
To: RPG programming on IBM i
Subject: Re: RPG COMP HiLoEq

in this context, LO condition is one of the 3 positions as defined in
the fixed format - HILOEQ - LO means if A < B

Nothing to do with values other than those of the 2 variables relative
to each other.

Gotta love fixed format?

Cheers
Vern

On 5/17/2020 7:50 PM, midrange wrote:
Booth wrote " The issue came up because we're finding a LO condition does not turn on *in10"
C A COMP B 101020

Are you saying that after that line of code, both indicators 10 and 20 were off ('0')...?

And just for grins to identify the compiler - is this RPG36, RPG, RPGLE ? What OS Version?
And any special compiler overrides like FIXNBR or ALWNULL?

And "finding a LO condition" - how low... like a very low hex value (below x'40')?


Jim Franz

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: Sunday, May 17, 2020 2:54 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: RPG COMP HiLoEq

That was the original assumption. The issue came up because we're finding a LO condition does not turn on *in10. So there is something else going on.

On 5/16/2020 10:31 PM, midrange wrote:
If high then *IN10 = '1'
If low then *IN10 = '1'
If equal then *IN20='1'

Could also be like this...
C A COMP B 101520

Jim
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.