|
"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxx> wrote on 12/01/2017 11:44:50AM:
I would use something more like this.
dcl-ds WhsLookup_t template;
Whs char(2);
*n char(1);
Duns char(9);
end-ds;
dcl-ds *n;
*n char(12) inz('10 006477244');
*n char(12) inz('18 612726414');
*n char(12) inz('20 612726414');
WhsTbl likeds(WhsLookup_t) dim(3) pos(1);
end-ds;
And in case it wasn't obvious, you would lookup by WhsTbl(x).Whs
and when you get a hit, you use WhsTbl(x).Duns to get the DUNS
number for the matching warehouse.
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.