MIDRANGE dot COM Mailing List Archive



MIDRANGE-L » February 2013

RE: RUNSQL job log or stats to report on the number of records deleted



Frank,
RUNSQLSTM (not RUNSQL) will generate an audit of your SQL statements in
a spooled report.

Need a record count of records deleted?
Try command RUNSQLSTM SRCFILE(AMSSRC/QQMQRYSRC) SRCMBR(J55SQLCNTQ)
COMMIT(*NONE)

In the example above, source SRCFILE(AMSSRC/QQMQRYSRC)
SRCMBR(J55SQLCNTQ) has this statement: DELETE FROM CANDTA/F42199

Spooled report shows 12,949,319 rows deleted from F42199 with these
messages shown below:

SQL0088 0 1 Position 1 DELETE applies to entire table.

SQL7955 0 1 Position 1 12949319 rows deleted from F42199 in
CANDTA.





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

This mailing list archive is Copyright 1997-2013 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