|
Thanks, I'm going to try your suggestion.....along with several others that were recommended. -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of vhamberg@xxxxxxxxxxx Sent: Wednesday, November 08, 2006 2:44 PM To: RPG programming on the AS400 / iSeries Subject: Re: Checking indicators The indicators can be treated as an array. The name of it is *IN with elements from 1 to 99. 1. Declare a 20-character variable CHAR20 2. MOVEA *IN(n) CHAR20 3. Compare CHAR20 to *zeros I was hoping you could in free form try %subarr(*IN : n : 20) = *zeros because *IN can be used as in the above example as an array - no such luck in a quick test. It also did not work when assignting the result of %subarr to a variable. I kinda think this could be a bug but will not pursue it. HTH Vern -------------- Original message -------------- From: "Douglas Palme" <dpalme@xxxxxxxxxxx>
I have a need to check whether 20 indicators are on or off and I'd like to
find a way if possible to check them all without having to use multiple if
statements. Is this possible?
****************************************************************************
This transmission may contain information that is privileged, Confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
****************************************************************************
-- 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 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.