|
If you examine the AS/400 MI instructions that support array indexing, you will find that array indexes must be defined as BIN(2) or BIN(4). There are also array size and number-of-elements limits that apply and are checked by the machine while it is executing these instructions. I don't know if the machine will object to unsigned but there is no reason (that I can think of) to use unsigned ints for array indexes. Richard Jackson mailto:richardjackson@richardjackson.net http://www.richardjacksonltd.com Voice: 1 (303) 808-8058 Fax: 1 (303) 663-4325 -|-----Original Message----- -|From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On -|Behalf Of Len Lester -|Sent: Thursday, October 26, 2000 12:02 PM -|To: RPG400-L@midrange.com -|Subject: Re: Field type for Array index -| -| -|I believe this was true for the S360/370 and false for the S/3 and S/36. -| -| -|>From: Alan Addison <ahaddison@home.com> -|>Reply-To: RPG400-L@midrange.com -|>To: RPG400-L@midrange.com -|>Subject: Field type for Array index -|>Date: Thu, 26 Oct 2000 10:54:20 -0400 -|> -|>many a year ago I read that binary fields were the "best" for indexing -|>arrays... Was I full of hot air? -|> -|>+--- -|>| This is the RPG/400 Mailing List! -|>| To submit a new message, send your mail to RPG400-L@midrange.com. -|>| To subscribe to this list send email to RPG400-L-SUB@midrange.com. -|>| To unsubscribe from this list send email to -|RPG400-L-UNSUB@midrange.com. -|>| Questions should be directed to the list owner/operator: -|>david@midrange.com -|>+--- -| -|_________________________________________________________________________ -|Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -| -|Share information about yourself, create your own public profile at -|http://profiles.msn.com. -| -|+--- -|| This is the RPG/400 Mailing List! -|| To submit a new message, send your mail to RPG400-L@midrange.com. -|| To subscribe to this list send email to RPG400-L-SUB@midrange.com. -|| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. -|| Questions should be directed to the list owner/operator: -|david@midrange.com -|+--- +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.