× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Sure i can - that is a reserved special value that takes on the data type you 
need - i just did it. So for a character field (or indicator) it is a character 
value as long as you need. I am not testing the individual indicators here, I 
am testing the contents of a character field that has what is in the indicator 
array.

Cool, huh?
Vern
-------------- Original message -------------- 
From: "Christen, Duane J." <dchristen@xxxxxxxxxxxxx> 

Vern; 

You can't use *ZEROS this is a numeric value, indicators are character 
values of '0' or '1'. 

Duane Christen 

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

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. 

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



NOTICE: This electronic mail transmission may contain confidential 
information and is intended only for the person(s) named. Any use, copying 
or disclosure by any other person is strictly prohibited. If you have 
received this transmission in error, please notify the sender via e-mail. 



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