|
So I think I have a type mismatch that should be caught at compile timelogical
that isn't. The code has worked for sometime now and we just discovered
what we thing "should" have been a compile error. Source compiles fine,
program runs and acts "as expected". The problem comes in with a
being used.as
Field Defs.
QuoteNumber 9a
ItemNumber 15a
Quantity 11s 3
The logical is OEBOML1 with the following key...
OQUOTE 6a
OPROD 15a
OPQTY 11s 3
OSEQ 3s 0
OERQT 9a
OQTLN 3s 0
OQUOTE is the first 6 characters of the QuoteNumber - anyway... I have
this statement....
setll (QuoteNumber:ItemNumber:Quantity) oeboml1;
reade (QuoteNumber:ItemNumber:Quantity) oeboml1;
dow not %eof(oeboml1);
What I'm thinking is that I should get a compile error since QuoteNumber
is 9a, not 6a. Shouldn't this be a key mismatch error?
But it doesn't error out. And, on top of that, when I run the code it
acts a I would "want" it to and finds the quotes properly.... at least
far as I can tell....use of the individual or entity to which it is addressed and may contain
I'm really stumped as to why this "works".... any thoughts?
Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777
--- This message (including any attachments) is intended only for the
--list
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.