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



I am not sure of the layout of the record, but if there is one repair record per item, why not create a logical over the records, based on the fields you want to be in order? Then the program you already have would work just fine, with small modification.


steema@xxxxxxxxxxxxx wrote:
HI I have another case here where I think SQL would be put to better use.
Instead of building a work file in the RPG program.

There are inventory records, specifically Repair records. The system
allows for one customer to have up to 5 items in repair.

Now they want to see all of the items in repair, by model number, sorted.

It is possible to have the same model number per record. call it part1,
part2, etc. it's really model number.

The layout of the record is:

PART #1  CO  DIV  QTY 1   PART #2 Part#3 etc..
PH15R    1            1   PH5CW
PH15R    1            1
PH15R    1            1
PH15R    1            1   PH5CW
PH15R    1            1   PH5CW

in this case, I want the PH5CW models to follow the PH15R.

My thought is to build another work file that would then be sorted. This
would be the second work file and RPG. So I was hoping perhaps this
could all be done in one SQL? The ultimate purpose is to then show all the
model number by total in a subfile.

Thanks,
Steve





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.