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

This thread ...


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