|
Let me clarify what I am attempting to do.
I have a file with the key: Company, Location, Item, Seq#, Substitute Item.
The file has additional fields.
The user sees all substitute items for the Company, Location, Item and can change the Sequence # and other data shown.
Since the user can change the sequence #, I need to process all records for the group.
When I do the update/add, I need to resequence the data on file based on the seq# the user keyed.
This is similar to what is done in SEU when you insert or delete lines.
What I am doing now is storing the screen seq# & substitute item in an array, sorting the array and then deleting all records for the group.
When I output the records from the subfile, I assign a sequence # based on the location of the seq#/item in the array.
I was hoping for a less messy method to get the same result.
Thanks,
Jeff Young Sr. Programmer Analyst
IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions V5R2 IBM Certified Specialist- e(logo) server i5Series Technical Solutions Designer V5R3
IBM Certified Specialist- e(logo)server i5Series Technical Solutions Implementer V5R3
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.