|
Hi there,
I've an SQLSRC statement embedded in RUNSQLSTM. My spool file tells me how many rows have been updated.
But, does anyone know how to find the updated rows information without actually going back to the database file to query the records updated.
UPDATE Afile A
SET A.Netamt = (SELECT replace(B.net_amount , ',' , '')
FROM Bfile B
WHERE A.date1 = B.date1), A.source ='1'
WHERE EXISTS
(SELECT B.net_amount
FROM Bfile B
WHERE A.date1 = B.date1)
This updates me 120 rows, I would like to see which rows it updates Netamt & source to 1 after running SQL.
I could SQL
Select A.Netamt, A.source from Afile A, Bfile B
where A.date1 =B.date1
Thank you!
p.s: can anyone recommend best SQL/400 book, sorry if this question does nt relate to this forum.
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.