× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



WRKMSGD MSGID(QRY2211) MSGF(QQRYMSG)
Message . . . . : Join test cannot have both fields from the same file
ID.
Recovery . . . : Change the join test so the two fields have different
file
IDs. To specify a test with two fields from the same file ID, go to the

Select Records display after specifying the join test(s).

Assuming that you ARE doing a join and it looks something like this
select ordno, ...
from ordhead join orddtl on ordno=ordno

Then you need to do one of three things

1
select ordhead.ordno, ...
from ordhead join orddtl on ordhead.ordno = orddtl.ordno

2
select H.ordno, ...
from ordhead H join orddtl D on H.ordno=D.ordno

3 (V5R4 or above only)
select ordhead.ordno, ...
from ordhead join orddtl using ordno


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.