If the array is not that large, you could just dump the whole thing to screen and eyeball it. If the array is pretty large, perhaps use SQL embedded in RPG or RPGLE, or just interactive SQL, to get a count of records where any of the elements are non-zero. If the count comes up zero, then you know you Ok. If the count non-zero then you may want to copy the code to get a list of records with non-zero elements.

Does this question have anything to do with BPCS?

Using what means Asset, RPG, RPGLE, COBOL, VB, C++?

-----Original Message-----
From: jszarlik@xxxxxx
To: ""bpcs-l"@midrange.com"
Sent: Thu, 19 Apr 2007 3:36 PM
Subject: [BPCS-L] (no subject)


hey,
i would like to check that the array is empty (each element is equal 0).
the best way/solution, please?
jk

--
This is the SSA's BPCS ERP System (BPCS-L) mailing list
To post a message email: BPCS-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/bpcs-l
or email: BPCS-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/bpcs-l.

Delivered-To: RKHBIT@xxxxxxx
________________________________________________________________________
AOL now offers free email to everyone. Find out more about what's free from AOL at AOL.com.
--
This is the SSA's BPCS ERP System (BPCS-L) mailing list
To post a message email: BPCS-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/bpcs-l
or email: BPCS-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/bpcs-l.

Delivered-To: macwheel99@xxxxxxxxxxx



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 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.