On 06 Dec 2012 16:07, Stone, Joel wrote:
Is there a better way to do this?

Perhaps the MERGE statement of the SQL?

IBM i 7.1 Information Center -> Database -> Reference -> SQL reference -> Statements
_i MERGE i_
"The MERGE statement updates a target (a table or view) using data from a source (result of a table reference). Rows in the target that match the input data may be updated or deleted as specified, and rows that do not exist in the target may be inserted as specified. ..."

Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot 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 here. If you have questions about this, please contact