I would like a free form example to setup a lookup table in an rpg program

It would have 2 columns... Warehouse (2a) and Dunns code (9a)
Warehouse would be used to lookup the Dunns code
Warehouse entries would be unique, Dunns codes may duplicate.
(I know i could make a table to do this but trying to exercise my brain
:-)
I would like to initialize the entries in the d-specs.

Any example I can adapt to this is appreciated.

I am looking to replace the old code below.

Thanks for any help or direction.

John

<old code>
d-specs:
d TABWHS s 2 dim(15) ctdata perrcd(1)
d TABDUN s 9 dim(15) alt(TABWHS)
c-specs:
c s2whs lookup TABWHS TABDUN 61 (EQ)
data:
** Warehouse/DUNS # tables
10006477244
18612726414
20612726414
25612726414
30187812631
40006198980
51006477244
54043835454
59043835454
60006477244
64926463431
75588109301
80006477244
85926463431
88545318045
</old code>
<br />
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.