|
I'm a different Rob, but I'll take a stab. Let's use a simple table:
While this might be better in a lookup file, for the sake of our example let's
assume we used a compile time table.
¦ DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++++++++++
¦
¦ DTABEMP 3A 0 DIM(4) PERRCD(1) CTDATA
¦
¦ DTABPAY 7S 2 DIM(4) ALT(TABEMP)
¦
¦ CL0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq..
¦
¦ C* The LOOKUP operation searches TABEMP for an entry that is equal to
¦
¦ C* the contents of the field named EMPNUM. If an equal entry is
¦
¦ C* found in TABEMP, indicator 09 is set on, and the TABEMP entry and
¦
¦ C* its related entry in TABPAY are made the current elements.
¦
¦ C EMPNUM LOOKUP TABEMP TABPAY 09
¦
¦ C* If indicator 09 is set on, the contents of the field named
¦
¦ C* HRSWKD are multiplied by the value of the current element of
¦
¦ C* TABPAY.
¦
¦ C IF *IN09
¦
¦ C HRSWKD MULT(H) TABPAY AMT 6 2
¦
¦ C ENDIF
¦
...
** Employee table. First 3 digits are employee # Rest is rate.
0010000950
0020000725
0030001375
0040001000
oludare@ix.netcom.com on 02/10/2000 03:33:08 PM
Please respond to RPG400-L@midrange.com@Internet
To: RPG400-L@midrange.com@Internet
cc:
Fax to:
Subject: Re:
Rob,
Excuse my ignorance but what makes a table or an array ALTERNATING.
Oludare
----- Original Message -----
From: <ilechr@cbs.fiserv.com>
To: <rpg400-l@midrange.com>
Sent: Thursday, February 10, 2000 10:30 AM
> Gentlemen,
>
> Does anyone happen to know if there are any performance differences
between
> alternating tables and alternating arrays?
>
> Robert Ilechuku
> ilechr@cbs.fiserv.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
+---
+---
| 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-2025 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.