× 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.



Easy answer is you can't.

Couple of thoughts:

1) Do you really need to use all the fields from all the 
files?

The answer to that is no.  Outside of the first mentioned file, I really
only needed 1 field for a control break.  I didn't need those other DS at
all.  So now I have:

Exec SQL  Declare MyCursor cursor
            for Select i.*,
                       b.BYCODE
                  From DMITMMST I
                      Left Outer Join
                    DMVDRMST V On i.VNDNR = v.VNDNR
                      Left Outer Join
                    DMBYRMST B On v.BUYER = b.BYCODE
                  Where i.ACREC = 'A'
                  Order By v.BUYER;

And:

Exec SQL  Fetch Next
            from MyCursor
            into :dmitmmstDS,
                 :BYCODE;

Isn't this special. <g>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.